Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.001599/0.001599, allocations: 113 kB / 18.49 MB, free: 4.598 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.002181/0.002181, allocations: 213.4 kB / 21.45 MB, free: 1.652 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.643/1.643, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.2444/0.2444, allocations: 44.9 MB / 355.8 MB, free: 12.31 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.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",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.002194/0.002194, allocations: 68.17 kB / 0.4885 GB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1389, allocations: 65.43 MB / 0.5524 GB, free: 10.27 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004837/0.1438, allocations: 2.364 MB / 0.5547 GB, free: 7.887 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.1459, allocations: 0.9151 MB / 0.5556 GB, free: 6.965 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003341/0.1462, allocations: 7.938 kB / 0.5556 GB, free: 6.957 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004196/0.1466, allocations: 59.52 kB / 0.5557 GB, free: 6.898 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004154/0.147, allocations: 79.39 kB / 0.5558 GB, free: 6.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006111/0.1476, allocations: 143.6 kB / 0.5559 GB, free: 6.68 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006636/0.1483, allocations: 347.4 kB / 0.5562 GB, free: 6.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.1485, allocations: 65.22 kB / 0.5563 GB, free: 6.27 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000399/0.1489, allocations: 159.5 kB / 0.5565 GB, free: 6.113 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003439/0.1493, allocations: 167.3 kB / 0.5566 GB, free: 5.949 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.354e-05/0.1493, allocations: 24 kB / 0.5566 GB, free: 5.926 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000241/0.1496, allocations: 91.95 kB / 0.5567 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.1497, allocations: 71.75 kB / 0.5568 GB, free: 5.766 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001927/0.1499, allocations: 135.4 kB / 0.5569 GB, free: 5.633 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000649/0.1506, allocations: 386.5 kB / 0.5573 GB, free: 5.254 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1506, allocations: 4 kB / 0.5573 GB, free: 5.25 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1506, allocations: 0 / 0.5573 GB, free: 5.25 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.1506, allocations: 0 / 0.5573 GB, free: 5.25 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001315/0.1519, allocations: 0.5843 MB / 0.5579 GB, free: 4.617 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.152, allocations: 12.03 kB / 0.5579 GB, free: 4.605 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.526e-05/0.152, allocations: 8.75 kB / 0.5579 GB, free: 4.598 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.642e-05/0.1521, allocations: 62.72 kB / 0.5579 GB, free: 4.527 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002189/0.1523, allocations: 36.78 kB / 0.558 GB, free: 4.492 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004907/0.1528, allocations: 262.9 kB / 0.5582 GB, free: 4.199 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.1528, allocations: 16.94 kB / 0.5582 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.665e-05/0.1529, allocations: 24.38 kB / 0.5583 GB, free: 4.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006489/0.1535, allocations: 276.7 kB / 0.5585 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.1536, allocations: 7.953 kB / 0.5585 GB, free: 3.875 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.304e-05/0.1536, allocations: 4 kB / 0.5585 GB, free: 3.871 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.1536, allocations: 11.98 kB / 0.5586 GB, free: 3.859 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005912/0.1542, allocations: 238.1 kB / 0.5588 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.1559, allocations: 0.733 MB / 0.5595 GB, free: 2.844 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006383/0.1565, allocations: 220.5 kB / 0.5597 GB, free: 2.621 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002875/0.1568, allocations: 133.2 kB / 0.5598 GB, free: 2.488 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.06e-05/0.1569, allocations: 3.938 kB / 0.5598 GB, free: 2.484 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.1569, allocations: 42.56 kB / 0.5599 GB, free: 2.434 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.894e-06/0.1569, allocations: 0 / 0.5599 GB, free: 2.434 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003704/0.1606, allocations: 1.41 MB / 0.5613 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.1607, allocations: 59.34 kB / 0.5613 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.161, allocations: 215.7 kB / 0.5615 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.857e-05/0.161, allocations: 33.7 kB / 0.5615 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.1611, allocations: 140.8 kB / 0.5617 GB, free: 444 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.1613, allocations: 123 kB / 0.5618 GB, free: 320 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.1614, allocations: 65.69 kB / 0.5619 GB, free: 248 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.1616, allocations: 338.7 kB / 0.5622 GB, free: 15.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002898/0.1619, allocations: 120 kB / 0.5623 GB, free: 15.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003279/0.1623, allocations: 163.3 kB / 0.5625 GB, free: 15.61 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005105/0.1628, allocations: 243.1 kB / 0.5627 GB, free: 15.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1628, allocations: 0 / 0.5627 GB, free: 15.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001006/0.1638, allocations: 426 kB / 0.5631 GB, free: 14.94 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.1638, allocations: 11.94 kB / 0.5631 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.1638, allocations: 0 / 0.5631 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005484/0.1644, allocations: 192.7 kB / 0.5633 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002523/0.1646, allocations: 59.92 kB / 0.5633 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009463/0.1656, allocations: 0.7242 MB / 0.5641 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/0.1659, allocations: 39.95 kB / 0.5641 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.527e-05/0.1659, allocations: 8 kB / 0.5641 GB, free: 13.88 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002398/0.1662, allocations: 154.3 kB / 0.5642 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.648e-05/0.1662, allocations: 23.86 kB / 0.5643 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001125/0.1664, allocations: 34.66 kB / 0.5643 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.1664, allocations: 4 kB / 0.5643 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.1664, allocations: 3.984 kB / 0.5643 GB, free: 13.65 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1664, allocations: 0 / 0.5643 GB, free: 13.65 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/0.1684, allocations: 0.9363 MB / 0.5652 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.1684, allocations: 0 / 0.5652 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002543/0.1686, allocations: 51.91 kB / 0.5653 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004604/0.1691, allocations: 184.7 kB / 0.5655 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.56e-05/0.1691, allocations: 8 kB / 0.5655 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008161/0.1699, allocations: 0.6928 MB / 0.5661 GB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1699, allocations: 0 / 0.5661 GB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.1713, allocations: 0.6077 MB / 0.5667 GB, free: 11.06 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.1715, allocations: 132.9 kB / 0.5669 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.414e-05/0.1715, allocations: 15.94 kB / 0.5669 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.1718, allocations: 35.95 kB / 0.5669 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.172, allocations: 47.92 kB / 0.567 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.172, allocations: 12.06 kB / 0.567 GB, free: 10.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001936/0.1722, allocations: 161.5 kB / 0.5671 GB, free: 10.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1722, allocations: 0 / 0.5671 GB, free: 10.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004327/0.1726, allocations: 68 kB / 0.5672 GB, free: 10.58 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003067/0.1757, allocations: 1.393 MB / 0.5685 GB, free: 9.289 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009383/0.1766, allocations: 291.5 kB / 0.5688 GB, free: 9.004 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.1766, allocations: 0 / 0.5688 GB, free: 9.004 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004135/0.177, allocations: 152.4 kB / 0.569 GB, free: 8.855 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/0.1775, allocations: 49.78 kB / 0.569 GB, free: 8.809 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006051/0.1836, allocations: 3.089 MB / 0.572 GB, free: 5.609 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004792/0.1841, allocations: 0.7602 MB / 0.5728 GB, free: 4.824 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.1842, allocations: 26.28 kB / 0.5728 GB, free: 4.797 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.1844, allocations: 71.41 kB / 0.5729 GB, free: 4.727 MB / 430.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1844, allocations: 4 kB / 0.5729 GB, free: 4.723 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03262/0.217, allocations: 7.947 MB / 0.5806 GB, free: 12.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.04, allocations: 3.938 kB / 0.5806 GB, free: 12.9 MB / 446.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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: 16.53595230198698]