Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001859/0.001859, 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.002275/0.002275, 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.603/1.603, allocations: 230.6 MB / 254.8 MB, free: 14.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2585/0.2585, allocations: 46.92 MB / 357.8 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002234/0.002234, allocations: 59.91 kB / 0.4916 GB, free: 7.992 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1566, allocations: 65.99 MB / 0.556 GB, free: 5.871 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.005195/0.1618, allocations: 2.374 MB / 0.5584 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.1639, allocations: 0.9034 MB / 0.5592 GB, free: 2.574 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002675/0.1641, allocations: 7.938 kB / 0.5593 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003658/0.1645, allocations: 59.5 kB / 0.5593 GB, free: 2.508 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003471/0.1649, allocations: 79.41 kB / 0.5594 GB, free: 2.43 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005785/0.1654, allocations: 143.6 kB / 0.5595 GB, free: 2.289 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006259/0.1661, allocations: 343.3 kB / 0.5599 GB, free: 1.953 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.1663, allocations: 68.92 kB / 0.5599 GB, free: 1.879 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004206/0.1667, allocations: 159.5 kB / 0.5601 GB, free: 1.723 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003886/0.1671, allocations: 171.3 kB / 0.5602 GB, free: 1.555 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.812e-05/0.1672, allocations: 32 kB / 0.5603 GB, free: 1.523 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002489/0.1674, allocations: 79.98 kB / 0.5603 GB, free: 1.445 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.1676, allocations: 71.8 kB / 0.5604 GB, free: 1.375 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002159/0.1678, allocations: 143.3 kB / 0.5605 GB, free: 1.234 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007117/0.1685, allocations: 374.6 kB / 0.5609 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1685, allocations: 4 kB / 0.5609 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1685, allocations: 3.938 kB / 0.5609 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.1685, allocations: 0 / 0.5609 GB, free: 0.8594 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.001309/0.1699, allocations: 0.596 MB / 0.5615 GB, free: 220 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.1699, allocations: 8.031 kB / 0.5615 GB, free: 212 kB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.833e-05/0.1699, allocations: 4.75 kB / 0.5615 GB, free: 208 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.874e-05/0.17, allocations: 58.73 kB / 0.5616 GB, free: 140 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000209/0.1702, allocations: 36.78 kB / 0.5616 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004987/0.1707, allocations: 263 kB / 0.5618 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.089e-05/0.1708, allocations: 20.94 kB / 0.5619 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.494e-05/0.1708, allocations: 20.38 kB / 0.5619 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006007/0.1714, allocations: 272.7 kB / 0.5621 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.1714, allocations: 3.953 kB / 0.5621 GB, free: 15.49 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.569e-05/0.1715, allocations: 12 kB / 0.5622 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.1715, allocations: 7.984 kB / 0.5622 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005671/0.1721, allocations: 234.1 kB / 0.5624 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.1737, allocations: 0.7291 MB / 0.5631 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006264/0.1743, allocations: 230.4 kB / 0.5633 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.1746, allocations: 133.2 kB / 0.5635 GB, free: 14.1 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.1747, allocations: 15.81 kB / 0.5635 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.1747, allocations: 30.56 kB / 0.5635 GB, free: 14.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.164e-06/0.1747, allocations: 0 / 0.5635 GB, free: 14.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.003933/0.1786, allocations: 1.418 MB / 0.5649 GB, free: 12.52 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.1787, allocations: 55.41 kB / 0.5649 GB, free: 12.45 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/0.179, allocations: 215.7 kB / 0.5651 GB, free: 12.22 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.266e-05/0.1791, allocations: 29.7 kB / 0.5652 GB, free: 12.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.1792, allocations: 140.9 kB / 0.5653 GB, free: 12.05 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.1793, allocations: 122.9 kB / 0.5654 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.1795, allocations: 69.69 kB / 0.5655 GB, free: 11.85 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.1797, allocations: 338.8 kB / 0.5658 GB, free: 11.51 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000296/0.18, allocations: 115.9 kB / 0.5659 GB, free: 11.4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.1803, allocations: 164.4 kB / 0.5661 GB, free: 11.23 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005083/0.1808, allocations: 243 kB / 0.5663 GB, free: 10.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1808, allocations: 0 / 0.5663 GB, free: 10.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001043/0.1819, allocations: 422 kB / 0.5667 GB, free: 10.55 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.1819, allocations: 7.938 kB / 0.5667 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1819, allocations: 0 / 0.5667 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005797/0.1825, allocations: 200.8 kB / 0.5669 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.1827, allocations: 55.91 kB / 0.567 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009856/0.1837, allocations: 0.7281 MB / 0.5677 GB, free: 9.539 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.184, allocations: 36.06 kB / 0.5677 GB, free: 9.504 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.1841, allocations: 27.97 kB / 0.5677 GB, free: 9.477 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.0002248/0.1843, allocations: 145.8 kB / 0.5679 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.1844, allocations: 23.86 kB / 0.5679 GB, free: 9.301 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.1845, allocations: 38.64 kB / 0.5679 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.1845, allocations: 4 kB / 0.5679 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.1845, allocations: 0 / 0.5679 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1845, allocations: 4 kB / 0.5679 GB, free: 9.254 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/0.1866, allocations: 0.9362 MB / 0.5689 GB, free: 8.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.1866, allocations: 0 / 0.5689 GB, free: 8.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.1868, allocations: 47.91 kB / 0.5689 GB, free: 8.203 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004506/0.1873, allocations: 172.8 kB / 0.5691 GB, free: 8.031 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.855e-05/0.1873, allocations: 11.98 kB / 0.5691 GB, free: 8.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008233/0.1881, allocations: 0.6927 MB / 0.5698 GB, free: 7.301 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1881, allocations: 0 / 0.5698 GB, free: 7.301 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/0.1895, allocations: 0.6155 MB / 0.5704 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002065/0.1897, allocations: 128.9 kB / 0.5705 GB, free: 6.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.412e-05/0.1898, allocations: 12 kB / 0.5705 GB, free: 6.508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003017/0.1901, allocations: 36.02 kB / 0.5705 GB, free: 6.473 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.1903, allocations: 47.92 kB / 0.5706 GB, free: 6.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.315e-05/0.1903, allocations: 11.98 kB / 0.5706 GB, free: 6.414 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002036/0.1905, allocations: 161.4 kB / 0.5707 GB, free: 6.258 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1905, allocations: 0 / 0.5707 GB, free: 6.258 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004594/0.1909, allocations: 71.94 kB / 0.5708 GB, free: 6.188 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.003124/0.1941, allocations: 1.397 MB / 0.5722 GB, free: 4.895 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.1951, allocations: 287.5 kB / 0.5724 GB, free: 4.613 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.1951, allocations: 0 / 0.5724 GB, free: 4.613 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004401/0.1955, allocations: 160.5 kB / 0.5726 GB, free: 4.457 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005668/0.1961, allocations: 43.78 kB / 0.5726 GB, free: 4.414 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006397/0.2025, allocations: 3.082 MB / 0.5756 GB, free: 1.219 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005565/0.2031, allocations: 0.7602 MB / 0.5764 GB, free: 444 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001541/0.2032, allocations: 22.28 kB / 0.5764 GB, free: 420 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.2034, allocations: 75.41 kB / 0.5765 GB, free: 344 kB / 430.1 MB Notification: Performance of SimCode: time 1.623e-06/0.2034, allocations: 0 / 0.5765 GB, free: 344 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03355/0.2369, allocations: 7.946 MB / 0.5842 GB, free: 8.508 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.29, allocations: 10.75 kB / 0.5842 GB, free: 8.5 MB / 446.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 17.059308305033483]