Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001711/0.001715, allocations: 188.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001159/0.001159, allocations: 86.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2841/0.2841, allocations: 43.55 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006302/0.0006302, allocations: 12 kB / 431.3 MB, free: 20.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1382, allocations: 58.87 MB / 490.2 MB, free: 9.344 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003607/0.1418, allocations: 2.109 MB / 492.3 MB, free: 7.215 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.1435, allocations: 0.6753 MB / 493 MB, free: 6.531 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.1437, allocations: 4 kB / 493 MB, free: 6.527 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 7.873e-05/0.1437, allocations: 27.77 kB / 493 MB, free: 6.5 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003093/0.1441, allocations: 99.66 kB / 493.1 MB, free: 6.402 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002713/0.1444, allocations: 67.92 kB / 493.2 MB, free: 6.336 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004278/0.1448, allocations: 223.5 kB / 493.4 MB, free: 6.117 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.145, allocations: 65.58 kB / 493.5 MB, free: 6.055 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.1453, allocations: 111.6 kB / 493.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.1455, allocations: 115.4 kB / 493.7 MB, free: 5.832 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.551e-05/0.1455, allocations: 12 kB / 493.7 MB, free: 5.82 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.914e-05/0.1456, allocations: 12 kB / 493.7 MB, free: 5.809 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.181e-05/0.1457, allocations: 43.83 kB / 493.8 MB, free: 5.766 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.1458, allocations: 81.52 kB / 493.8 MB, free: 5.68 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003218/0.1462, allocations: 207.7 kB / 494 MB, free: 5.477 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1462, allocations: 0 / 494 MB, free: 5.477 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1462, allocations: 0 / 494 MB, free: 5.477 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.1462, allocations: 4 kB / 494.1 MB, free: 5.473 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.00119/0.1474, allocations: 0.5456 MB / 494.6 MB, free: 4.879 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.1474, allocations: 12.02 kB / 494.6 MB, free: 4.867 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.436e-05/0.1475, allocations: 31.62 kB / 494.6 MB, free: 4.836 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003991/0.148, allocations: 254.5 kB / 494.9 MB, free: 4.547 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.148, allocations: 20.56 kB / 494.9 MB, free: 4.527 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.724e-05/0.1481, allocations: 31.89 kB / 494.9 MB, free: 4.496 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007456/0.1488, allocations: 285.9 kB / 495.2 MB, free: 4.195 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/0.1489, allocations: 0 / 495.2 MB, free: 4.195 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.801e-05/0.1489, allocations: 12 kB / 495.2 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.149, allocations: 11.95 kB / 495.2 MB, free: 4.172 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007426/0.1497, allocations: 199.7 kB / 495.4 MB, free: 3.977 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002516/0.1522, allocations: 1.321 MB / 496.8 MB, free: 2.547 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000672/0.1529, allocations: 258.4 kB / 497 MB, free: 2.258 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.951e-05/0.153, allocations: 12.12 kB / 497 MB, free: 2.246 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.153, allocations: 34.56 kB / 497.1 MB, free: 2.203 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 2.866e-06/0.1531, allocations: 0 / 497.1 MB, free: 2.203 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.004119/0.1572, allocations: 1.627 MB / 498.7 MB, free: 376 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.563e-05/0.1573, allocations: 132.5 kB / 498.8 MB, free: 212 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003317/0.1576, allocations: 225 kB / 499 MB, free: 15.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.1577, allocations: 29.7 kB / 499.1 MB, free: 15.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.1579, allocations: 238.6 kB / 499.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.158, allocations: 114.2 kB / 499.4 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.1581, allocations: 12 kB / 499.4 MB, free: 15.58 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1583, allocations: 330.8 kB / 499.7 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004551/0.1587, allocations: 104.8 kB / 499.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005838/0.1593, allocations: 253.4 kB / 0.4884 GB, free: 14.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005325/0.1599, allocations: 145.4 kB / 0.4885 GB, free: 14.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1599, allocations: 0 / 0.4885 GB, free: 14.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001304/0.1612, allocations: 401.2 kB / 0.4889 GB, free: 14.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.1612, allocations: 8 kB / 0.4889 GB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.1613, allocations: 4.094 kB / 0.4889 GB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.1613, allocations: 11.94 kB / 0.4889 GB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007304/0.162, allocations: 107.8 kB / 0.489 GB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.172e-05/0.1621, allocations: 15.89 kB / 0.489 GB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003816/0.1625, allocations: 32.05 kB / 0.4891 GB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.074e-05/0.1625, allocations: 23.94 kB / 0.4891 GB, free: 14.1 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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 0.0002143/0.1627, allocations: 149.7 kB / 0.4892 GB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.1629, allocations: 27.7 kB / 0.4893 GB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.968e-05/0.163, allocations: 33.72 kB / 0.4893 GB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.163, allocations: 4 kB / 0.4893 GB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.163, allocations: 0 / 0.4893 GB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.163, allocations: 11.94 kB / 0.4893 GB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002563/0.1656, allocations: 1.009 MB / 0.4903 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.1657, allocations: 0 / 0.4903 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007496/0.1664, allocations: 83.88 kB / 0.4904 GB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-05/0.1665, allocations: 4 kB / 0.4904 GB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.1665, allocations: 12.06 kB / 0.4904 GB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.553e-06/0.1665, allocations: 448 / 0.4904 GB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-05/0.1665, allocations: 4 kB / 0.4904 GB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/0.1683, allocations: 0.8308 MB / 0.4912 GB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.1684, allocations: 108.9 kB / 0.4913 GB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.935e-05/0.1685, allocations: 12.05 kB / 0.4913 GB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004612/0.169, allocations: 23.98 kB / 0.4913 GB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.1691, allocations: 35.89 kB / 0.4914 GB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-05/0.1691, allocations: 8 kB / 0.4914 GB, free: 11.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002025/0.1694, allocations: 156.5 kB / 0.4915 GB, free: 11.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1694, allocations: 0 / 0.4915 GB, free: 11.45 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007233/0.1701, allocations: 64.19 kB / 0.4916 GB, free: 11.39 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.0001523/0.1703, allocations: 107.2 kB / 0.4917 GB, free: 11.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.1714, allocations: 296.2 kB / 0.492 GB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1714, allocations: 4 kB / 0.492 GB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005343/0.172, allocations: 148.1 kB / 0.4921 GB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006278/0.1726, allocations: 37.97 kB / 0.4922 GB, free: 10.8 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.1749, allocations: 1.096 MB / 0.4932 GB, free: 9.664 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004615/0.1754, allocations: 0.78 MB / 0.494 GB, free: 8.855 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.1756, allocations: 35.42 kB / 0.494 GB, free: 8.82 MB / 346.7 MB Notification: Performance of SimCode: time 1.273e-06/0.1756, allocations: 0 / 0.494 GB, free: 8.82 MB / 346.7 MB Notification: Performance of Templates: time 0.008013/0.1836, allocations: 3.198 MB / 0.4971 GB, free: 5.621 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches