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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002154/0.002154, allocations: 203.3 kB / 20.74 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.564/1.564, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.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.2225/0.2225, allocations: 44.91 MB / 355.1 MB, free: 12.33 MB / 286.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 72.16 kB / 499.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1311, allocations: 65.42 MB / 0.5517 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004679/0.1358, allocations: 2.653 MB / 0.5543 GB, free: 7.5 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.1378, allocations: 0.7245 MB / 0.555 GB, free: 6.77 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003845/0.1382, allocations: 11.88 kB / 0.555 GB, free: 6.758 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002733/0.1385, allocations: 39.59 kB / 0.5551 GB, free: 6.719 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003863/0.1388, allocations: 91.19 kB / 0.5552 GB, free: 6.629 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004264/0.1393, allocations: 103.8 kB / 0.5553 GB, free: 6.527 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005149/0.1398, allocations: 338.5 kB / 0.5556 GB, free: 6.195 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.14, allocations: 66.16 kB / 0.5556 GB, free: 6.121 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003336/0.1403, allocations: 139.5 kB / 0.5558 GB, free: 5.984 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002171/0.1405, allocations: 127.4 kB / 0.5559 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.103e-05/0.1406, allocations: 24 kB / 0.5559 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.707e-05/0.1407, allocations: 28 kB / 0.5559 GB, free: 5.809 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.039e-05/0.1407, allocations: 59.75 kB / 0.556 GB, free: 5.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.1409, allocations: 143.2 kB / 0.5561 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000441/0.1413, allocations: 314.6 kB / 0.5564 GB, free: 5.301 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1413, allocations: 0 / 0.5564 GB, free: 5.301 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1413, allocations: 0 / 0.5564 GB, free: 5.301 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.1413, allocations: 0 / 0.5564 GB, free: 5.301 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.001094/0.1424, allocations: 0.6058 MB / 0.557 GB, free: 4.648 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1425, allocations: 12.03 kB / 0.557 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.664e-05/0.1426, allocations: 62.72 kB / 0.5571 GB, free: 4.566 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000289/0.1429, allocations: 48.73 kB / 0.5571 GB, free: 4.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005054/0.1434, allocations: 279.7 kB / 0.5574 GB, free: 4.207 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.08e-05/0.1434, allocations: 20.94 kB / 0.5574 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-05/0.1435, allocations: 32.31 kB / 0.5575 GB, free: 4.156 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005471/0.144, allocations: 282.1 kB / 0.5577 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.144, allocations: 7.953 kB / 0.5577 GB, free: 3.848 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/0.1441, allocations: 11.94 kB / 0.5578 GB, free: 3.836 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.1441, allocations: 4 kB / 0.5578 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00047/0.1445, allocations: 191.3 kB / 0.5579 GB, free: 3.648 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.1465, allocations: 1.31 MB / 0.5592 GB, free: 2.234 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004652/0.147, allocations: 234.4 kB / 0.5594 GB, free: 1.969 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.1472, allocations: 99.5 kB / 0.5595 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.1472, allocations: 8 kB / 0.5595 GB, free: 1.852 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.1472, allocations: 42.5 kB / 0.5596 GB, free: 1.801 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.933e-06/0.1472, allocations: 0 / 0.5596 GB, free: 1.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002872/0.1501, allocations: 1.574 MB / 0.5611 GB, free: 20 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.1502, allocations: 132.5 kB / 0.5612 GB, free: 15.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002496/0.1505, allocations: 228.9 kB / 0.5615 GB, free: 15.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.1505, allocations: 29.7 kB / 0.5615 GB, free: 15.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.1506, allocations: 184.5 kB / 0.5617 GB, free: 15.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.1507, allocations: 119 kB / 0.5618 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.1509, allocations: 70.12 kB / 0.5619 GB, free: 15.21 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.151, allocations: 338.8 kB / 0.5622 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.1513, allocations: 100.8 kB / 0.5623 GB, free: 14.78 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003612/0.1516, allocations: 241.4 kB / 0.5625 GB, free: 14.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006717/0.1523, allocations: 369.8 kB / 0.5629 GB, free: 14.06 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1523, allocations: 3.938 kB / 0.5629 GB, free: 14.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008665/0.1532, allocations: 405 kB / 0.5632 GB, free: 13.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.1532, allocations: 8 kB / 0.5633 GB, free: 13.65 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.1532, allocations: 4 kB / 0.5633 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.1532, allocations: 8 kB / 0.5633 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003907/0.1536, allocations: 99.81 kB / 0.5634 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.1536, allocations: 12.06 kB / 0.5634 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00022/0.1539, allocations: 24.23 kB / 0.5634 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.1539, allocations: 28.2 kB / 0.5634 GB, free: 13.48 MB / 430.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.0001653/0.1541, allocations: 155.8 kB / 0.5636 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.1542, allocations: 31.81 kB / 0.5636 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.215e-05/0.1543, allocations: 37.7 kB / 0.5636 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.1543, allocations: 4 kB / 0.5636 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1543, allocations: 0 / 0.5636 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1543, allocations: 0 / 0.5636 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001588/0.1559, allocations: 0.9857 MB / 0.5646 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1559, allocations: 0 / 0.5646 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.1563, allocations: 80.11 kB / 0.5647 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1563, allocations: 7.875 kB / 0.5647 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.555e-05/0.1563, allocations: 15.92 kB / 0.5647 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.1563, allocations: 4 kB / 0.5647 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1563, allocations: 0 / 0.5647 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.1574, allocations: 0.7331 MB / 0.5654 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.429e-05/0.1575, allocations: 100.9 kB / 0.5655 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.342e-05/0.1576, allocations: 16 kB / 0.5655 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002931/0.1578, allocations: 15.98 kB / 0.5655 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.06e-05/0.1579, allocations: 23.97 kB / 0.5656 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-05/0.158, allocations: 11.98 kB / 0.5656 GB, free: 11.14 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001607/0.1581, allocations: 160.5 kB / 0.5657 GB, free: 10.98 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1581, allocations: 0 / 0.5657 GB, free: 10.98 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005122/0.1586, allocations: 68 kB / 0.5658 GB, free: 10.92 MB / 430.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.001473/0.1601, allocations: 1.274 MB / 0.567 GB, free: 9.609 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007893/0.1609, allocations: 280 kB / 0.5673 GB, free: 9.336 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.1609, allocations: 0 / 0.5673 GB, free: 9.336 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00031/0.1612, allocations: 124.9 kB / 0.5674 GB, free: 9.215 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006875/0.1619, allocations: 47.94 kB / 0.5675 GB, free: 9.172 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00505/0.1669, allocations: 3.506 MB / 0.5709 GB, free: 5.438 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004255/0.1674, allocations: 0.7758 MB / 0.5717 GB, free: 4.637 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000152/0.1675, allocations: 34.95 kB / 0.5717 GB, free: 4.602 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.1677, allocations: 91.41 kB / 0.5718 GB, free: 4.512 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1677, allocations: 0 / 0.5718 GB, free: 4.512 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03352/0.2012, allocations: 5.422 MB / 0.5771 GB, free: 15.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.959/9.16, allocations: 0 / 0.5771 GB, free: 15.18 MB / 446.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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219824 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.csv","/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) [Timeout 660] "Error: Could not read variable speed4.s in file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.csv. Warning: Get data of variable speed4.s from file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.43341976730153]