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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001809/0.001809, allocations: 119 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002129/0.002129, allocations: 194.9 kB / 21.44 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 225.6 MB / 249.8 MB, free: 3.5 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2257/0.2257, allocations: 44.92 MB / 349.6 MB, free: 1.719 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 65.88 kB / 491.8 MB, free: 29.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1185, allocations: 64.26 MB / 0.543 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004083/0.1226, allocations: 2.628 MB / 0.5455 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.1238, allocations: 0.6428 MB / 0.5462 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.124, allocations: 7.938 kB / 0.5462 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.1241, allocations: 51.45 kB / 0.5462 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001761/0.1243, allocations: 87.27 kB / 0.5463 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002601/0.1246, allocations: 83.81 kB / 0.5464 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003866/0.125, allocations: 334.6 kB / 0.5467 GB, free: 316 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.1251, allocations: 62.16 kB / 0.5468 GB, free: 244 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.1253, allocations: 135.5 kB / 0.5469 GB, free: 108 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.1255, allocations: 127.4 kB / 0.547 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.784e-05/0.1256, allocations: 24 kB / 0.547 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.133e-05/0.1256, allocations: 24 kB / 0.5471 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.333e-05/0.1257, allocations: 59.81 kB / 0.5471 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.1258, allocations: 143.2 kB / 0.5473 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003744/0.1262, allocations: 306.6 kB / 0.5475 GB, free: 15.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1262, allocations: 0 / 0.5475 GB, free: 15.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1262, allocations: 0 / 0.5475 GB, free: 15.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1262, allocations: 0 / 0.5475 GB, free: 15.43 MB / 414.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.0009761/0.1272, allocations: 0.5883 MB / 0.5481 GB, free: 14.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.1272, allocations: 12.03 kB / 0.5481 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.608e-05/0.1273, allocations: 62.67 kB / 0.5482 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.576e-05/0.1274, allocations: 36.73 kB / 0.5482 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.1278, allocations: 267.9 kB / 0.5485 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.1278, allocations: 16.94 kB / 0.5485 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.632e-05/0.1279, allocations: 32.33 kB / 0.5485 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004944/0.1284, allocations: 278 kB / 0.5488 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.1284, allocations: 12 kB / 0.5488 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.1284, allocations: 12 kB / 0.5488 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.1284, allocations: 4 kB / 0.5488 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004279/0.1289, allocations: 184.7 kB / 0.549 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.1306, allocations: 1.31 MB / 0.5503 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004457/0.1311, allocations: 242.5 kB / 0.5505 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/0.1313, allocations: 95.39 kB / 0.5506 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.1313, allocations: 4 kB / 0.5506 GB, free: 12.03 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.1313, allocations: 42.55 kB / 0.5506 GB, free: 11.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.084e-06/0.1313, allocations: 0 / 0.5506 GB, free: 11.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002695/0.134, allocations: 1.573 MB / 0.5522 GB, free: 10.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.712e-05/0.1341, allocations: 136.5 kB / 0.5523 GB, free: 10.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.1344, allocations: 225 kB / 0.5525 GB, free: 9.805 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.1344, allocations: 29.7 kB / 0.5526 GB, free: 9.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.1345, allocations: 184.5 kB / 0.5527 GB, free: 9.586 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.983e-05/0.1346, allocations: 126.9 kB / 0.5529 GB, free: 9.461 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.1347, allocations: 70.08 kB / 0.5529 GB, free: 9.387 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1349, allocations: 338.8 kB / 0.5532 GB, free: 9.047 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002649/0.1351, allocations: 96.81 kB / 0.5533 GB, free: 8.953 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003471/0.1355, allocations: 237.5 kB / 0.5536 GB, free: 8.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000631/0.1361, allocations: 370.4 kB / 0.5539 GB, free: 8.238 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.1361, allocations: 4.312 kB / 0.5539 GB, free: 8.234 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008037/0.1369, allocations: 401.1 kB / 0.5543 GB, free: 7.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.137, allocations: 4 kB / 0.5543 GB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.137, allocations: 8.094 kB / 0.5543 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.137, allocations: 11.94 kB / 0.5543 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003883/0.1374, allocations: 104.2 kB / 0.5544 GB, free: 7.711 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.1374, allocations: 15.98 kB / 0.5544 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002191/0.1376, allocations: 23.92 kB / 0.5545 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.013e-05/0.1376, allocations: 20 kB / 0.5545 GB, free: 7.652 MB / 414.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.0001606/0.1378, allocations: 153.6 kB / 0.5546 GB, free: 7.492 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.1379, allocations: 31.81 kB / 0.5547 GB, free: 7.461 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.828e-05/0.138, allocations: 33.7 kB / 0.5547 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.138, allocations: 4 kB / 0.5547 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.138, allocations: 4 kB / 0.5547 GB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.138, allocations: 7.984 kB / 0.5547 GB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.1396, allocations: 0.9739 MB / 0.5557 GB, free: 6.371 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.1396, allocations: 4 kB / 0.5557 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003748/0.1399, allocations: 75.89 kB / 0.5557 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.468e-06/0.1399, allocations: 7.984 kB / 0.5557 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.383e-05/0.14, allocations: 11.94 kB / 0.5558 GB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.175e-06/0.14, allocations: 0 / 0.5558 GB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.14, allocations: 4 kB / 0.5558 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.141, allocations: 0.7253 MB / 0.5565 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.564e-05/0.1411, allocations: 104.9 kB / 0.5566 GB, free: 5.398 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.1411, allocations: 16 kB / 0.5566 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.1414, allocations: 19.97 kB / 0.5566 GB, free: 5.363 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.295e-05/0.1415, allocations: 23.97 kB / 0.5566 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.1415, allocations: 8.25 kB / 0.5566 GB, free: 5.332 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.1417, allocations: 160.5 kB / 0.5568 GB, free: 5.172 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1417, allocations: 0 / 0.5568 GB, free: 5.172 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004969/0.1422, allocations: 68.19 kB / 0.5568 GB, free: 5.105 MB / 414.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.001405/0.1436, allocations: 1.275 MB / 0.5581 GB, free: 3.797 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006729/0.1442, allocations: 264.1 kB / 0.5583 GB, free: 3.539 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.1442, allocations: 4.812 kB / 0.5583 GB, free: 3.535 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002866/0.1445, allocations: 123.9 kB / 0.5585 GB, free: 3.414 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.1452, allocations: 41.17 kB / 0.5585 GB, free: 3.375 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004907/0.1501, allocations: 3.503 MB / 0.5619 GB, free: 15.65 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/0.1506, allocations: 0.772 MB / 0.5627 GB, free: 14.85 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001904/0.1507, allocations: 34.95 kB / 0.5627 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.1509, allocations: 95.39 kB / 0.5628 GB, free: 14.72 MB / 430.1 MB Notification: Performance of SimCode: time 1.182e-06/0.1509, allocations: 7.938 kB / 0.5628 GB, free: 14.71 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/0.1812, allocations: 5.358 MB / 0.568 GB, free: 9.449 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.793/8.974, allocations: 14.69 kB / 0.5681 GB, free: 9.441 MB / 430.1 MB " [Timeout remaining time 651] (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 --stepSize=0.000219824 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.034090743865818]