Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008799/0.0008848, allocations: 93.88 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000904/0.0009042, allocations: 183.5 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002704/0.0002705, allocations: 6.406 kB / 300.7 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1017, allocations: 50.42 MB / 351.1 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001541/0.1033, allocations: 1.193 MB / 352.3 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006676/0.1039, allocations: 463.2 kB / 352.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.704e-05/0.104, allocations: 7.938 kB / 352.8 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.898e-05/0.1041, allocations: 15.92 kB / 352.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.723e-05/0.1042, allocations: 11.92 kB / 352.8 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001268/0.1043, allocations: 27.97 kB / 352.8 MB, free: 9.984 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.66e-05/0.1044, allocations: 31.91 kB / 352.9 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.717e-05/0.1045, allocations: 16.25 kB / 352.9 MB, free: 9.938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.331e-05/0.1046, allocations: 27.84 kB / 352.9 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.528e-05/0.1046, allocations: 27.91 kB / 352.9 MB, free: 9.883 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.133e-05/0.1047, allocations: 8 kB / 352.9 MB, free: 9.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.865e-05/0.1047, allocations: 8 kB / 353 MB, free: 9.867 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.268e-05/0.1047, allocations: 7.938 kB / 353 MB, free: 9.859 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.644e-05/0.1048, allocations: 37.69 kB / 353 MB, free: 9.816 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.935e-05/0.1049, allocations: 39.86 kB / 353 MB, free: 9.777 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1049, allocations: 0 / 353 MB, free: 9.777 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.1049, allocations: 0 / 353 MB, free: 9.777 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.1049, allocations: 4 kB / 353 MB, free: 9.773 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005696/0.1055, allocations: 383.1 kB / 353.4 MB, free: 9.352 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.1055, allocations: 12.02 kB / 353.4 MB, free: 9.34 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.132e-05/0.1055, allocations: 7.953 kB / 353.4 MB, free: 9.332 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.1057, allocations: 174.9 kB / 353.6 MB, free: 9.121 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.1057, allocations: 4 kB / 353.6 MB, free: 9.117 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.1057, allocations: 4 kB / 353.6 MB, free: 9.113 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.106, allocations: 93.64 kB / 353.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.106, allocations: 0 / 353.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.106, allocations: 3.938 kB / 353.7 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.106, allocations: 7.953 kB / 353.7 MB, free: 9.004 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003179/0.1063, allocations: 107.8 kB / 353.8 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003789/0.1067, allocations: 304.8 kB / 354.1 MB, free: 8.551 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002404/0.107, allocations: 86.56 kB / 354.2 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.107, allocations: 7.953 kB / 354.2 MB, free: 8.449 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.774e-05/0.107, allocations: 38.62 kB / 354.2 MB, free: 8.402 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.011e-06/0.107, allocations: 0 / 354.2 MB, free: 8.402 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005683/0.1076, allocations: 177.6 kB / 354.4 MB, free: 8.223 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.912e-05/0.1077, allocations: 59.41 kB / 354.5 MB, free: 8.152 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.913e-05/0.1077, allocations: 105.8 kB / 354.6 MB, free: 8.039 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.1078, allocations: 29.64 kB / 354.6 MB, free: 8.004 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.544e-05/0.1078, allocations: 96.03 kB / 354.7 MB, free: 7.906 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.1078, allocations: 19.75 kB / 354.7 MB, free: 7.887 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.1078, allocations: 0 / 354.7 MB, free: 7.887 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.584e-05/0.1079, allocations: 314.8 kB / 355 MB, free: 7.57 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.1081, allocations: 47.95 kB / 355.1 MB, free: 7.523 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.1083, allocations: 51.95 kB / 355.1 MB, free: 7.473 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.1084, allocations: 43.97 kB / 355.2 MB, free: 7.43 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1084, allocations: 0 / 355.2 MB, free: 7.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003369/0.1088, allocations: 138 kB / 355.3 MB, free: 7.289 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.1088, allocations: 4 kB / 355.3 MB, free: 7.285 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.1088, allocations: 0 / 355.3 MB, free: 7.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.108e-06/0.1088, allocations: 64 / 355.3 MB, free: 7.285 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.1089, allocations: 35.97 kB / 355.3 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.109, allocations: 3.938 kB / 355.4 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.517e-05/0.1091, allocations: 23.89 kB / 355.4 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.1091, allocations: 0 / 355.4 MB, free: 7.223 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.66e-05/0.1091, allocations: 113.8 kB / 355.5 MB, free: 7.102 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.675e-05/0.1092, allocations: 11.95 kB / 355.5 MB, free: 7.09 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003979/0.1096, allocations: 149.5 kB / 355.6 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1096, allocations: 384 / 355.6 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.1096, allocations: 0 / 355.6 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1096, allocations: 4 kB / 355.6 MB, free: 6.93 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001746/0.1098, allocations: 193.5 kB / 355.8 MB, free: 6.691 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1098, allocations: 3.938 kB / 355.8 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.1099, allocations: 31.92 kB / 355.9 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1099, allocations: 3.984 kB / 355.9 MB, free: 6.652 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.11, allocations: 7.953 kB / 355.9 MB, free: 6.645 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.11, allocations: 0 / 355.9 MB, free: 6.645 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.11, allocations: 0 / 355.9 MB, free: 6.645 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003837/0.1104, allocations: 239.4 kB / 356.1 MB, free: 6.395 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.467e-05/0.1104, allocations: 88.95 kB / 356.2 MB, free: 6.289 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.1104, allocations: 0 / 356.2 MB, free: 6.289 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.1105, allocations: 23.94 kB / 356.2 MB, free: 6.266 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.1e-05/0.1106, allocations: 7.984 kB / 356.2 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.493e-06/0.1106, allocations: 4 kB / 356.2 MB, free: 6.254 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.387e-05/0.1107, allocations: 87.27 kB / 356.3 MB, free: 6.168 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1107, allocations: 0 / 356.3 MB, free: 6.168 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002195/0.1109, allocations: 12 kB / 356.3 MB, free: 6.156 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001102/0.111, allocations: 103.2 kB / 356.4 MB, free: 6.047 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003893/0.1114, allocations: 111.9 kB / 356.5 MB, free: 5.938 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1114, allocations: 0 / 356.5 MB, free: 5.938 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001688/0.1116, allocations: 59.89 kB / 356.6 MB, free: 5.879 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000199/0.1118, allocations: 15.92 kB / 356.6 MB, free: 5.863 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003066/0.1121, allocations: 178.8 kB / 356.8 MB, free: 5.66 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.1123, allocations: 0.6887 MB / 357.5 MB, free: 4.945 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.433e-05/0.1124, allocations: 11.98 kB / 357.5 MB, free: 4.934 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.75e-05/0.1124, allocations: 7.438 kB / 357.5 MB, free: 4.926 MB / 286.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1124, allocations: 0 / 357.5 MB, free: 4.926 MB / 286.1 MB Notification: Performance of Templates: time 0.00272/0.1151, allocations: 0.7347 MB / 358.2 MB, free: 4.199 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches