Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007976/0.0007974, allocations: 90.52 kB / 18 MB, free: 5.734 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.0008399/0.0008398, allocations: 180 kB / 18.91 MB, free: 4.867 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.342/1.342, allocations: 223.3 MB / 243 MB, free: 14.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.192/0.192, allocations: 44.24 MB / 338.3 MB, free: 2.406 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.0003339, allocations: 8.562 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1176, allocations: 61.92 MB / 472.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003088/0.1208, allocations: 2.275 MB / 475.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.1221, allocations: 0.6468 MB / 475.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003056/0.1224, allocations: 11.94 kB / 475.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.1227, allocations: 27.72 kB / 475.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003178/0.123, allocations: 71.39 kB / 475.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003264/0.1233, allocations: 75.92 kB / 476 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004841/0.1238, allocations: 314.6 kB / 476.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.124, allocations: 72.2 kB / 476.4 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002504/0.1243, allocations: 107.5 kB / 476.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/0.1245, allocations: 123.4 kB / 476.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.1246, allocations: 12 kB / 476.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.781e-05/0.1247, allocations: 12 kB / 476.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.985e-05/0.1247, allocations: 39.78 kB / 476.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001856/0.1249, allocations: 164.9 kB / 476.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002453/0.1252, allocations: 207.7 kB / 477 MB, free: 9.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.1252, allocations: 0 / 477 MB, free: 9.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1252, allocations: 0 / 477 MB, free: 9.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.1252, allocations: 4 kB / 477 MB, free: 9.16 MB / 350.1 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.0009878/0.1262, allocations: 0.5574 MB / 477.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1262, allocations: 8.031 kB / 477.6 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.1264, allocations: 32.56 kB / 477.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/0.1267, allocations: 260.8 kB / 477.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.1267, allocations: 12.94 kB / 477.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.427e-05/0.1268, allocations: 36.28 kB / 477.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005439/0.1273, allocations: 286.2 kB / 478.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/0.1274, allocations: 7.906 kB / 478.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.1274, allocations: 8 kB / 478.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.1274, allocations: 11.94 kB / 478.3 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.1279, allocations: 211.7 kB / 478.5 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.1299, allocations: 1.314 MB / 479.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004496/0.1303, allocations: 266.5 kB / 480 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002197/0.1306, allocations: 103.4 kB / 480.1 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.323e-05/0.1306, allocations: 4 kB / 480.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/0.1307, allocations: 46.5 kB / 480.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.355e-06/0.1307, allocations: 0 / 480.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002823/0.1335, allocations: 1.624 MB / 481.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.723e-05/0.1336, allocations: 140.5 kB / 481.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002213/0.1338, allocations: 220.9 kB / 482.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.837e-05/0.1338, allocations: 37.7 kB / 482.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.134, allocations: 172.2 kB / 482.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.767e-05/0.1341, allocations: 114.3 kB / 482.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.596e-05/0.1341, allocations: 37.69 kB / 482.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1343, allocations: 338.8 kB / 482.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002755/0.1345, allocations: 112.8 kB / 483 MB, free: 2.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003513/0.1349, allocations: 253.4 kB / 483.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006621/0.1356, allocations: 401.5 kB / 483.6 MB, free: 1.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1356, allocations: 0 / 483.6 MB, free: 1.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008048/0.1364, allocations: 425.2 kB / 484 MB, free: 1.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1364, allocations: 4 kB / 484 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.1364, allocations: 4 kB / 484 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.1365, allocations: 8 kB / 484 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003749/0.1368, allocations: 111.8 kB / 484.1 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.785e-05/0.1369, allocations: 16 kB / 484.2 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002257/0.1371, allocations: 32.14 kB / 484.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.1371, allocations: 16 kB / 484.2 MB, free: 1.332 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.1373, allocations: 150.2 kB / 484.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.1374, allocations: 35.58 kB / 484.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.395e-05/0.1375, allocations: 33.72 kB / 484.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1375, allocations: 4 kB / 484.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.1375, allocations: 4 kB / 484.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.1375, allocations: 8.297 kB / 484.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.139, allocations: 1.009 MB / 485.4 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1391, allocations: 4.281 kB / 485.4 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003875/0.1395, allocations: 87.88 kB / 485.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.1395, allocations: 4.062 kB / 485.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.1395, allocations: 15.88 kB / 485.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.1395, allocations: 4 kB / 485.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1395, allocations: 0 / 485.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.1406, allocations: 0.7603 MB / 486.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.703e-05/0.1407, allocations: 108.7 kB / 486.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/0.1407, allocations: 19.92 kB / 486.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002971/0.141, allocations: 23.98 kB / 486.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.138e-05/0.1411, allocations: 27.91 kB / 486.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.1411, allocations: 8 kB / 486.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001332/0.1413, allocations: 156.5 kB / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1413, allocations: 0 / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000481/0.1418, allocations: 72 kB / 486.7 MB, free: 14.7 MB / 366.1 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 (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.0001189/0.1419, allocations: 99.19 kB / 486.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006725/0.1426, allocations: 300.3 kB / 487.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1426, allocations: 0 / 487.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002868/0.1429, allocations: 143.8 kB / 487.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007253/0.1436, allocations: 47.58 kB / 487.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.1452, allocations: 1.131 MB / 488.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.1456, allocations: 0.7683 MB / 489.2 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.811e-05/0.1457, allocations: 31.42 kB / 489.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1457, allocations: 4 kB / 489.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of Templates: time 0.005974/0.1517, allocations: 3.262 MB / 492.5 MB, free: 8.832 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches