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: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00168/0.001685, allocations: 113 kB / 17.33 MB, free: 6.012 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.001958/0.001958, allocations: 193.3 kB / 18.25 MB, free: 5.102 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.373/1.373, allocations: 222.9 MB / 241.9 MB, free: 15.45 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.204/0.204, allocations: 44.17 MB / 336.2 MB, free: 2.883 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 59.28 kB / 408 MB, free: 27.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1257, allocations: 60.84 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004872/0.1307, allocations: 2.645 MB / 471.5 MB, free: 12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.1323, allocations: 0.635 MB / 472.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003137/0.1326, allocations: 11.94 kB / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002325/0.1328, allocations: 31.72 kB / 472.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003128/0.1332, allocations: 71.39 kB / 472.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003644/0.1336, allocations: 71.92 kB / 472.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004971/0.1341, allocations: 342.5 kB / 472.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.1343, allocations: 81.92 kB / 472.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002921/0.1346, allocations: 123.5 kB / 472.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.1349, allocations: 131.4 kB / 472.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.1349, allocations: 27.94 kB / 473 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.449e-05/0.135, allocations: 20 kB / 473 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-05/0.1351, allocations: 55.83 kB / 473 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001561/0.1352, allocations: 147.2 kB / 473.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003665/0.1356, allocations: 295.2 kB / 473.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.1356, allocations: 0 / 473.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1356, allocations: 3.938 kB / 473.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.411e-05/0.1357, allocations: 0 / 473.5 MB, free: 9.961 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.001086/0.1368, allocations: 0.5768 MB / 474.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.766e-05/0.1368, allocations: 8.031 kB / 474.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.782e-05/0.1369, allocations: 62.72 kB / 474.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.363e-05/0.137, allocations: 36.56 kB / 474.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003763/0.1374, allocations: 264.6 kB / 474.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.1374, allocations: 20.94 kB / 474.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.523e-05/0.1375, allocations: 32.28 kB / 474.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005263/0.138, allocations: 282.1 kB / 474.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/0.1381, allocations: 7.938 kB / 474.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.1381, allocations: 12 kB / 474.8 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.1381, allocations: 11.97 kB / 474.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004181/0.1386, allocations: 179.8 kB / 475 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.1404, allocations: 1.306 MB / 476.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004317/0.1409, allocations: 246.3 kB / 476.5 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/0.1411, allocations: 99.39 kB / 476.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.1411, allocations: 4 kB / 476.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.1412, allocations: 46.69 kB / 476.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.1412, allocations: 0 / 476.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002847/0.144, allocations: 1.572 MB / 478.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.853e-05/0.1441, allocations: 136.5 kB / 478.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.1444, allocations: 221 kB / 478.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.1444, allocations: 29.7 kB / 478.6 MB, free: 4.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.1445, allocations: 184.2 kB / 478.8 MB, free: 4.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.052e-05/0.1446, allocations: 118.3 kB / 478.9 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.1448, allocations: 66.14 kB / 479 MB, free: 3.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.1449, allocations: 334.8 kB / 479.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002594/0.1452, allocations: 104.8 kB / 479.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004429/0.1457, allocations: 237.4 kB / 479.6 MB, free: 3.203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000668/0.1463, allocations: 369.1 kB / 480 MB, free: 2.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.1464, allocations: 0 / 480 MB, free: 2.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007763/0.1471, allocations: 405.6 kB / 480.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.1472, allocations: 12.03 kB / 480.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.1472, allocations: 4.312 kB / 480.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.1472, allocations: 4 kB / 480.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.1476, allocations: 99.88 kB / 480.5 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.838e-05/0.1476, allocations: 16.03 kB / 480.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/0.1479, allocations: 27.91 kB / 480.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.1479, allocations: 20 kB / 480.6 MB, free: 2.199 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.0001711/0.1481, allocations: 157.6 kB / 480.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.737e-05/0.1482, allocations: 27.72 kB / 480.7 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.061e-05/0.1483, allocations: 33.7 kB / 480.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.1483, allocations: 4 kB / 480.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.1483, allocations: 4 kB / 480.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1483, allocations: 0 / 480.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.1498, allocations: 0.9857 MB / 481.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.1499, allocations: 3.938 kB / 481.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.1502, allocations: 79.89 kB / 481.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.1502, allocations: 0 / 481.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.888e-05/0.1503, allocations: 15.92 kB / 481.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.1503, allocations: 7.984 kB / 481.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1503, allocations: 3.938 kB / 481.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009741/0.1513, allocations: 0.7257 MB / 482.6 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.758e-05/0.1514, allocations: 100.7 kB / 482.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.537e-05/0.1514, allocations: 19.94 kB / 482.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002956/0.1517, allocations: 19.98 kB / 482.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.27e-05/0.1518, allocations: 23.97 kB / 482.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.1519, allocations: 11.98 kB / 482.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001354/0.152, allocations: 152.5 kB / 482.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.152, allocations: 4 kB / 482.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004823/0.1525, allocations: 68 kB / 483 MB, free: 15.65 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.001305/0.1538, allocations: 1.27 MB / 484.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006641/0.1545, allocations: 292 kB / 484.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.1545, allocations: 0 / 484.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002843/0.1548, allocations: 136.8 kB / 484.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000739/0.1555, allocations: 40.45 kB / 484.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004679/0.1602, allocations: 3.601 MB / 488.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.1606, allocations: 0.7681 MB / 489.1 MB, free: 9.262 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001617/0.1608, allocations: 35.52 kB / 489.1 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.161, allocations: 91.41 kB / 489.2 MB, free: 9.141 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.161, allocations: 0 / 489.2 MB, free: 9.141 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01897/0.1799, allocations: 5.024 MB / 494.2 MB, free: 4.227 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002623/0.1803, allocations: 194.1 kB / 494.4 MB, free: 3.969 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.924/2.104, allocations: 3.938 kB / 494.4 MB, free: 3.965 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > 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