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.001414/0.001414, allocations: 121 kB / 18.5 MB, free: 4.562 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.001599/0.001599, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.506/1.506, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.2259/0.2259, allocations: 44.9 MB / 355.8 MB, free: 12.32 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="cs",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.002024/0.002024, allocations: 67.91 kB / 0.4885 GB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1299, allocations: 65.43 MB / 0.5524 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004187/0.134, allocations: 2.636 MB / 0.555 GB, free: 7.633 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.1355, allocations: 0.7245 MB / 0.5557 GB, free: 6.902 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.1357, allocations: 15.88 kB / 0.5557 GB, free: 6.887 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.1359, allocations: 43.52 kB / 0.5558 GB, free: 6.844 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.1361, allocations: 87.2 kB / 0.5558 GB, free: 6.758 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.1364, allocations: 103.8 kB / 0.5559 GB, free: 6.656 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004027/0.1368, allocations: 334.5 kB / 0.5563 GB, free: 6.328 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.137, allocations: 62.2 kB / 0.5563 GB, free: 6.258 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002391/0.1372, allocations: 143.5 kB / 0.5565 GB, free: 6.117 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.1374, allocations: 131.4 kB / 0.5566 GB, free: 5.988 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.527e-05/0.1374, allocations: 24 kB / 0.5566 GB, free: 5.965 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.25e-05/0.1375, allocations: 24 kB / 0.5566 GB, free: 5.941 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.728e-05/0.1376, allocations: 59.77 kB / 0.5567 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.1377, allocations: 147.1 kB / 0.5568 GB, free: 5.738 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003954/0.1381, allocations: 310.6 kB / 0.5571 GB, free: 5.434 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1381, allocations: 4 kB / 0.5571 GB, free: 5.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1381, allocations: 0 / 0.5571 GB, free: 5.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.1381, allocations: 0 / 0.5571 GB, free: 5.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.001018/0.1391, allocations: 0.6038 MB / 0.5577 GB, free: 4.777 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.1392, allocations: 12.03 kB / 0.5577 GB, free: 4.766 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.294e-05/0.1392, allocations: 8.734 kB / 0.5577 GB, free: 4.758 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.07e-05/0.1393, allocations: 62.67 kB / 0.5578 GB, free: 4.688 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.1395, allocations: 52.72 kB / 0.5578 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.14, allocations: 279.8 kB / 0.5581 GB, free: 4.324 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.14, allocations: 20.94 kB / 0.5581 GB, free: 4.305 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.982e-05/0.1401, allocations: 28.33 kB / 0.5582 GB, free: 4.277 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005407/0.1406, allocations: 285.9 kB / 0.5584 GB, free: 3.973 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.1406, allocations: 7.953 kB / 0.5584 GB, free: 3.965 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.1406, allocations: 15.94 kB / 0.5584 GB, free: 3.949 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.1406, allocations: 8 kB / 0.5585 GB, free: 3.941 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004674/0.1411, allocations: 179.8 kB / 0.5586 GB, free: 3.766 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.143, allocations: 1.317 MB / 0.5599 GB, free: 2.344 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000453/0.1434, allocations: 230.5 kB / 0.5601 GB, free: 2.082 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002197/0.1437, allocations: 99.39 kB / 0.5602 GB, free: 1.973 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.1437, allocations: 0 / 0.5602 GB, free: 1.973 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.1437, allocations: 46.55 kB / 0.5603 GB, free: 1.918 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.413e-06/0.1437, allocations: 0 / 0.5603 GB, free: 1.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002942/0.1467, allocations: 1.574 MB / 0.5618 GB, free: 140 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.1468, allocations: 136.5 kB / 0.5619 GB, free: 15.97 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.1471, allocations: 236.9 kB / 0.5622 GB, free: 15.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.1471, allocations: 29.7 kB / 0.5622 GB, free: 15.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.1472, allocations: 180.5 kB / 0.5624 GB, free: 15.52 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.1473, allocations: 119 kB / 0.5625 GB, free: 15.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.1475, allocations: 74.06 kB / 0.5626 GB, free: 15.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.1476, allocations: 334.8 kB / 0.5629 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002744/0.1479, allocations: 100.8 kB / 0.563 GB, free: 14.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003899/0.1483, allocations: 241.4 kB / 0.5632 GB, free: 14.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006928/0.149, allocations: 373.1 kB / 0.5636 GB, free: 14.17 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.149, allocations: 3.938 kB / 0.5636 GB, free: 14.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008553/0.1499, allocations: 388.9 kB / 0.5639 GB, free: 13.78 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.1499, allocations: 8 kB / 0.5639 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.1499, allocations: 7.984 kB / 0.5639 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.1499, allocations: 8 kB / 0.564 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004126/0.1503, allocations: 100.2 kB / 0.564 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.1503, allocations: 12 kB / 0.5641 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.1506, allocations: 27.92 kB / 0.5641 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.1506, allocations: 16 kB / 0.5641 GB, free: 13.6 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.0001781/0.1508, allocations: 163.8 kB / 0.5643 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.1509, allocations: 27.81 kB / 0.5643 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.259e-05/0.151, allocations: 33.7 kB / 0.5643 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.151, allocations: 4 kB / 0.5643 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.151, allocations: 4 kB / 0.5643 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.151, allocations: 0 / 0.5643 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.1526, allocations: 0.9858 MB / 0.5653 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.1526, allocations: 0 / 0.5653 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004084/0.153, allocations: 79.97 kB / 0.5654 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-05/0.1531, allocations: 12.31 kB / 0.5654 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.1531, allocations: 4 kB / 0.5654 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.1531, allocations: 4.781 kB / 0.5654 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.1531, allocations: 8 kB / 0.5654 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.1543, allocations: 0.7331 MB / 0.5661 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.1544, allocations: 104.9 kB / 0.5662 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.564e-05/0.1544, allocations: 12 kB / 0.5662 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002941/0.1547, allocations: 15.98 kB / 0.5662 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.298e-05/0.1548, allocations: 23.97 kB / 0.5663 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.1548, allocations: 20.17 kB / 0.5663 GB, free: 11.26 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.155, allocations: 160.5 kB / 0.5664 GB, free: 11.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.155, allocations: 0 / 0.5664 GB, free: 11.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005259/0.1555, allocations: 68 kB / 0.5665 GB, free: 11.03 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.001516/0.157, allocations: 1.274 MB / 0.5677 GB, free: 9.723 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007414/0.1578, allocations: 276.2 kB / 0.568 GB, free: 9.453 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1578, allocations: 0.8125 kB / 0.568 GB, free: 9.453 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003106/0.1581, allocations: 127.8 kB / 0.5681 GB, free: 9.328 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006888/0.1588, allocations: 44.83 kB / 0.5682 GB, free: 9.289 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005208/0.164, allocations: 3.519 MB / 0.5716 GB, free: 5.539 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.1645, allocations: 0.772 MB / 0.5724 GB, free: 4.742 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001533/0.1646, allocations: 30.97 kB / 0.5724 GB, free: 4.711 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.1648, allocations: 95.41 kB / 0.5725 GB, free: 4.617 MB / 430.1 MB Notification: Performance of SimCode: time 1.312e-06/0.1648, allocations: 0 / 0.5725 GB, free: 4.617 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.1937, allocations: 5.452 MB / 0.5778 GB, free: 15.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.129/9.323, allocations: 8 kB / 0.5778 GB, free: 15.26 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 & /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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.470477977010887]