Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_3.2.3_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.001595/0.001596, allocations: 112.1 kB / 17.28 MB, free: 6.219 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.001995/0.001995, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.168/2.168, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 43.94 kB / 280.1 MB, free: 3.52 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1214, allocations: 46.63 MB / 326.8 MB, free: 4.82 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.003044/0.1244, allocations: 1.561 MB / 328.3 MB, free: 3.238 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008407/0.1253, allocations: 0.5432 MB / 328.9 MB, free: 2.688 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.178e-05/0.1253, allocations: 0 / 328.9 MB, free: 2.688 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.758e-05/0.1254, allocations: 15.98 kB / 328.9 MB, free: 2.672 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.183e-05/0.1255, allocations: 3.938 kB / 328.9 MB, free: 2.668 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001266/0.1256, allocations: 35.92 kB / 328.9 MB, free: 2.633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 9.067e-05/0.1257, allocations: 59.83 kB / 329 MB, free: 2.574 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.1258, allocations: 12 kB / 329 MB, free: 2.562 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.1259, allocations: 27.91 kB / 329 MB, free: 2.535 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.341e-05/0.126, allocations: 31.86 kB / 329 MB, free: 2.504 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.645e-05/0.1261, allocations: 8 kB / 329.1 MB, free: 2.496 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.309e-05/0.1261, allocations: 19.98 kB / 329.1 MB, free: 2.477 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.879e-05/0.1261, allocations: 15.92 kB / 329.1 MB, free: 2.461 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.887e-05/0.1262, allocations: 27.86 kB / 329.1 MB, free: 2.434 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.1263, allocations: 67.78 kB / 329.2 MB, free: 2.367 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1263, allocations: 0 / 329.2 MB, free: 2.367 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1263, allocations: 0 / 329.2 MB, free: 2.367 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1264, allocations: 0 / 329.2 MB, free: 2.367 MB / 270.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.0007279/0.1271, allocations: 387.5 kB / 329.6 MB, free: 1.941 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.1272, allocations: 8.031 kB / 329.6 MB, free: 1.934 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.308e-05/0.1272, allocations: 8.844 kB / 329.6 MB, free: 1.926 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.1274, allocations: 172.3 kB / 329.7 MB, free: 1.719 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.1274, allocations: 4.375 kB / 329.8 MB, free: 1.715 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.1274, allocations: 4.375 kB / 329.8 MB, free: 1.711 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000278/0.1277, allocations: 89.89 kB / 329.8 MB, free: 1.617 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.1277, allocations: 0 / 329.8 MB, free: 1.617 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.1278, allocations: 0 / 329.8 MB, free: 1.617 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.373e-06/0.1278, allocations: 8 kB / 329.9 MB, free: 1.609 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002939/0.1281, allocations: 71.92 kB / 329.9 MB, free: 1.539 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004748/0.1286, allocations: 312.6 kB / 330.2 MB, free: 1.184 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002441/0.1288, allocations: 86.45 kB / 330.3 MB, free: 1.09 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.129, allocations: 44.94 kB / 330.4 MB, free: 1.043 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.129, allocations: 0 / 330.4 MB, free: 1.043 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.129, allocations: 30.56 kB / 330.4 MB, free: 1.004 MB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 8.92e-07/0.129, allocations: 4 kB / 330.4 MB, free: 1 MB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.000583/0.1296, allocations: 153.5 kB / 330.5 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.1297, allocations: 55.41 kB / 330.6 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.1298, allocations: 109.8 kB / 330.7 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.1298, allocations: 25.7 kB / 330.7 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.048e-05/0.1299, allocations: 96.12 kB / 330.8 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.1299, allocations: 15.8 kB / 330.8 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-05/0.13, allocations: 13.72 kB / 330.9 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1301, allocations: 326.8 kB / 331.2 MB, free: 172 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.1303, allocations: 31.97 kB / 331.2 MB, free: 140 kB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.1304, allocations: 48.2 kB / 331.2 MB, free: 92 kB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.1307, allocations: 84.72 kB / 331.3 MB, free: 4 kB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1307, allocations: 0 / 331.3 MB, free: 4 kB / 270.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003373/0.131, allocations: 113.5 kB / 331.4 MB, free: 15.89 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.1311, allocations: 4 kB / 331.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1311, allocations: 0 / 331.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.1311, allocations: 0 / 331.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.1312, allocations: 23.97 kB / 331.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.1312, allocations: 3.938 kB / 331.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.747e-05/0.1313, allocations: 15.92 kB / 331.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-06/0.1314, allocations: 4 kB / 331.5 MB, free: 15.84 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001061/0.1315, allocations: 121.7 kB / 331.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.568e-05/0.1315, allocations: 7.906 kB / 331.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003981/0.1319, allocations: 129.6 kB / 331.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1319, allocations: 0 / 331.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1319, allocations: 0 / 331.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1319, allocations: 0 / 331.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.1321, allocations: 189.6 kB / 331.9 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.1321, allocations: 4.359 kB / 331.9 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.1322, allocations: 19.98 kB / 332 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.1323, allocations: 0 / 332 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.1323, allocations: 0 / 332 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1323, allocations: 3.938 kB / 332 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1323, allocations: 0 / 332 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004049/0.1327, allocations: 235.2 kB / 332.2 MB, free: 15.06 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.915e-05/0.1328, allocations: 77.11 kB / 332.3 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.829e-05/0.1328, allocations: 4.188 kB / 332.3 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.1329, allocations: 11.98 kB / 332.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.022e-05/0.1329, allocations: 11.98 kB / 332.3 MB, free: 14.94 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.133, allocations: 4 kB / 332.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.774e-05/0.133, allocations: 91.27 kB / 332.4 MB, free: 14.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.133, allocations: 0 / 332.4 MB, free: 14.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.00022/0.1332, allocations: 19.84 kB / 332.4 MB, free: 14.82 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001236/0.1334, allocations: 91.25 kB / 332.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003544/0.1337, allocations: 99.84 kB / 332.6 MB, free: 14.63 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1337, allocations: 0 / 332.6 MB, free: 14.63 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001497/0.1339, allocations: 47.91 kB / 332.6 MB, free: 14.58 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.1342, allocations: 11.98 kB / 332.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003587/0.1346, allocations: 190.1 kB / 332.8 MB, free: 14.36 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.1349, allocations: 0.6846 MB / 333.5 MB, free: 13.65 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.45e-05/0.135, allocations: 7.984 kB / 333.5 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.611e-05/0.135, allocations: 11.44 kB / 333.5 MB, free: 13.63 MB / 286.1 MB Notification: Performance of SimCode: time 1.343e-06/0.135, allocations: 0 / 333.5 MB, free: 13.63 MB / 286.1 MB Notification: Performance of Templates: time 0.003207/0.1382, allocations: 0.8003 MB / 334.3 MB, free: 12.83 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches