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.001187/0.001192, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001293/0.001293, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.329/1.329, allocations: 222.9 MB / 242.2 MB, free: 15.22 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.2505/0.2505, allocations: 44.19 MB / 336.6 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 67.23 kB / 408.4 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.112, allocations: 60.83 MB / 469.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003601/0.1156, allocations: 2.599 MB / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.1167, allocations: 0.6467 MB / 472.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.1169, allocations: 11.94 kB / 472.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.1171, allocations: 43.52 kB / 472.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.1173, allocations: 79.27 kB / 472.6 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002556/0.1176, allocations: 87.83 kB / 472.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000349/0.1179, allocations: 330.6 kB / 473 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.1181, allocations: 81.94 kB / 473.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.1183, allocations: 127.5 kB / 473.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.1184, allocations: 123.4 kB / 473.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.504e-05/0.1185, allocations: 27.98 kB / 473.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.208e-05/0.1185, allocations: 23.94 kB / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.222e-05/0.1186, allocations: 51.84 kB / 473.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.1187, allocations: 151.1 kB / 473.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.1191, allocations: 295.2 kB / 473.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.1191, allocations: 0 / 473.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.1191, allocations: 8 kB / 473.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1191, allocations: 3.938 kB / 473.9 MB, free: 9.711 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.0008838/0.12, allocations: 0.573 MB / 474.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.12, allocations: 8.031 kB / 474.5 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.996e-05/0.1201, allocations: 32.56 kB / 474.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.1204, allocations: 280.4 kB / 474.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.1204, allocations: 20.94 kB / 474.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.133e-05/0.1205, allocations: 36.28 kB / 474.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004369/0.1209, allocations: 278.2 kB / 475.1 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.1209, allocations: 8 kB / 475.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.121, allocations: 12 kB / 475.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.121, allocations: 4 kB / 475.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004009/0.1214, allocations: 191.5 kB / 475.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.1229, allocations: 1.302 MB / 476.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004005/0.1233, allocations: 258.3 kB / 476.9 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.1236, allocations: 95.39 kB / 477 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.1236, allocations: 8.125 kB / 477 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.1237, allocations: 42.56 kB / 477 MB, free: 6.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.252e-06/0.1237, allocations: 0 / 477 MB, free: 6.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002462/0.1261, allocations: 1.568 MB / 478.6 MB, free: 4.539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.1262, allocations: 132.5 kB / 478.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/0.1264, allocations: 221 kB / 478.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.1265, allocations: 29.7 kB / 479 MB, free: 4.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.1266, allocations: 184.2 kB / 479.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.995e-05/0.1267, allocations: 114.3 kB / 479.3 MB, free: 3.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.164e-05/0.1268, allocations: 66.12 kB / 479.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1269, allocations: 342.8 kB / 479.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002383/0.1272, allocations: 100.8 kB / 479.8 MB, free: 3.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003033/0.1275, allocations: 237.4 kB / 480 MB, free: 3.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005913/0.1281, allocations: 370.2 kB / 480.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1281, allocations: 4 kB / 480.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007224/0.1288, allocations: 396.8 kB / 480.7 MB, free: 2.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.1289, allocations: 7.984 kB / 480.7 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.1289, allocations: 8 kB / 480.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.1289, allocations: 4 kB / 480.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003859/0.1293, allocations: 99.88 kB / 480.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.1293, allocations: 12.72 kB / 480.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.1295, allocations: 19.98 kB / 480.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.859e-05/0.1296, allocations: 24.19 kB / 480.9 MB, free: 2.027 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.0001505/0.1297, allocations: 153.6 kB / 481.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.1298, allocations: 31.66 kB / 481.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.32e-05/0.1299, allocations: 33.94 kB / 481.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.1299, allocations: 7.984 kB / 481.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1299, allocations: 4 kB / 481.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1299, allocations: 320 / 481.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/0.1314, allocations: 0.9855 MB / 482.1 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1314, allocations: 0 / 482.1 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000367/0.1318, allocations: 79.88 kB / 482.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.1318, allocations: 7.938 kB / 482.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.1318, allocations: 11.94 kB / 482.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.294e-06/0.1318, allocations: 7.938 kB / 482.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1318, allocations: 0 / 482.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000952/0.1328, allocations: 0.7213 MB / 482.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-05/0.1329, allocations: 108.7 kB / 483.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.588e-05/0.1329, allocations: 15.92 kB / 483.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002842/0.1332, allocations: 19.98 kB / 483.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.027e-05/0.1333, allocations: 23.97 kB / 483.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.1333, allocations: 8.281 kB / 483.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000116/0.1334, allocations: 160.5 kB / 483.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1334, allocations: 0 / 483.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004477/0.1339, allocations: 71.94 kB / 483.3 MB, free: 15.47 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 9.691e-05/0.134, allocations: 99.19 kB / 483.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006049/0.1346, allocations: 291.8 kB / 483.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1346, allocations: 0 / 483.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002743/0.1349, allocations: 136.6 kB / 483.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000705/0.1356, allocations: 44.36 kB / 483.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.137, allocations: 0.8719 MB / 484.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.1373, allocations: 0.772 MB / 485.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.1375, allocations: 30.95 kB / 485.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.9e-05/0.1375, allocations: 27.44 kB / 485.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1375, allocations: 0 / 485.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of Templates: time 0.005604/0.1432, allocations: 2.401 MB / 488 MB, free: 10.74 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches