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.001417/0.001417, 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.001665/0.001665, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.559/1.559, allocations: 230.6 MB / 254.1 MB, free: 15.06 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.2446/0.2446, allocations: 46.92 MB / 357.1 MB, free: 10.29 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 67.89 kB / 0.4909 GB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1307, allocations: 65.99 MB / 0.5554 GB, free: 5.824 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004341/0.1351, allocations: 2.366 MB / 0.5577 GB, free: 3.445 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001655/0.1367, allocations: 0.9189 MB / 0.5586 GB, free: 2.52 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.1369, allocations: 4 kB / 0.5586 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002669/0.1371, allocations: 55.52 kB / 0.5586 GB, free: 2.461 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002371/0.1374, allocations: 79.41 kB / 0.5587 GB, free: 2.383 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003891/0.1378, allocations: 139.6 kB / 0.5588 GB, free: 2.246 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005186/0.1383, allocations: 355.2 kB / 0.5592 GB, free: 1.898 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.1385, allocations: 68.92 kB / 0.5592 GB, free: 1.824 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/0.1388, allocations: 159.5 kB / 0.5594 GB, free: 1.668 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002735/0.1391, allocations: 163.4 kB / 0.5595 GB, free: 1.508 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.13e-05/0.1391, allocations: 28 kB / 0.5596 GB, free: 1.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.1393, allocations: 87.97 kB / 0.5597 GB, free: 1.395 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.1395, allocations: 75.73 kB / 0.5597 GB, free: 1.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001574/0.1396, allocations: 135.3 kB / 0.5599 GB, free: 1.188 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005556/0.1402, allocations: 386.6 kB / 0.5602 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1402, allocations: 0 / 0.5602 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1402, allocations: 0 / 0.5602 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1402, allocations: 0 / 0.5602 GB, free: 0.8086 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.001102/0.1413, allocations: 0.5921 MB / 0.5608 GB, free: 172 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1413, allocations: 8.031 kB / 0.5608 GB, free: 164 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.354e-05/0.1414, allocations: 58.73 kB / 0.5609 GB, free: 96 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.1416, allocations: 40.78 kB / 0.5609 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004514/0.1421, allocations: 262.9 kB / 0.5612 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.1421, allocations: 16.94 kB / 0.5612 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.089e-05/0.1422, allocations: 24.38 kB / 0.5612 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005675/0.1427, allocations: 268.9 kB / 0.5615 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.1427, allocations: 11.94 kB / 0.5615 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.1428, allocations: 4 kB / 0.5615 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1428, allocations: 8 kB / 0.5615 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000549/0.1433, allocations: 234.1 kB / 0.5617 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.1449, allocations: 0.733 MB / 0.5624 GB, free: 14.42 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006234/0.1455, allocations: 234.4 kB / 0.5626 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002701/0.1458, allocations: 121.2 kB / 0.5628 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.1458, allocations: 3.938 kB / 0.5628 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.1458, allocations: 42.56 kB / 0.5628 GB, free: 14 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.164e-06/0.1458, allocations: 0 / 0.5628 GB, free: 14 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.003647/0.1495, allocations: 1.414 MB / 0.5642 GB, free: 12.48 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/0.1495, allocations: 59.41 kB / 0.5642 GB, free: 12.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003261/0.1499, allocations: 211.7 kB / 0.5644 GB, free: 12.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.367e-05/0.1499, allocations: 33.7 kB / 0.5645 GB, free: 12.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.15, allocations: 136.9 kB / 0.5646 GB, free: 12.01 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.1502, allocations: 130.9 kB / 0.5647 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.1503, allocations: 65.69 kB / 0.5648 GB, free: 11.81 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.1505, allocations: 334.8 kB / 0.5651 GB, free: 11.47 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.1508, allocations: 116 kB / 0.5652 GB, free: 11.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003146/0.1511, allocations: 168.4 kB / 0.5654 GB, free: 11.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004803/0.1516, allocations: 247 kB / 0.5656 GB, free: 10.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1516, allocations: 0 / 0.5656 GB, free: 10.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009822/0.1526, allocations: 422 kB / 0.566 GB, free: 10.51 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.1526, allocations: 13.81 kB / 0.566 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1526, allocations: 0 / 0.566 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005767/0.1532, allocations: 200.7 kB / 0.5662 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.1534, allocations: 47.97 kB / 0.5663 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009719/0.1544, allocations: 0.7357 MB / 0.567 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.1547, allocations: 35.95 kB / 0.567 GB, free: 9.457 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.328e-05/0.1547, allocations: 15.98 kB / 0.567 GB, free: 9.441 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.000234/0.1549, allocations: 151.1 kB / 0.5672 GB, free: 9.285 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.365e-05/0.155, allocations: 23.86 kB / 0.5672 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.1551, allocations: 38.64 kB / 0.5672 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1551, allocations: 4 kB / 0.5672 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.1551, allocations: 0 / 0.5672 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.1552, allocations: 0 / 0.5672 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.157, allocations: 0.944 MB / 0.5682 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.157, allocations: 0 / 0.5682 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.1573, allocations: 47.97 kB / 0.5682 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004199/0.1577, allocations: 172.8 kB / 0.5684 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.434e-05/0.1577, allocations: 16.05 kB / 0.5684 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007872/0.1585, allocations: 0.6967 MB / 0.5691 GB, free: 7.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1585, allocations: 0 / 0.5691 GB, free: 7.25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.1598, allocations: 0.6116 MB / 0.5697 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.16, allocations: 124.9 kB / 0.5698 GB, free: 6.477 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.794e-05/0.16, allocations: 12 kB / 0.5698 GB, free: 6.465 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002787/0.1603, allocations: 35.95 kB / 0.5698 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.1605, allocations: 51.98 kB / 0.5699 GB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.1605, allocations: 11.98 kB / 0.5699 GB, free: 6.367 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001728/0.1607, allocations: 153.5 kB / 0.57 GB, free: 6.219 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1607, allocations: 0 / 0.57 GB, free: 6.219 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004205/0.1611, allocations: 75.88 kB / 0.5701 GB, free: 6.145 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.002905/0.164, allocations: 1.388 MB / 0.5715 GB, free: 4.855 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008663/0.1649, allocations: 279.6 kB / 0.5717 GB, free: 4.582 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1649, allocations: 0 / 0.5717 GB, free: 4.582 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003756/0.1652, allocations: 164.2 kB / 0.5719 GB, free: 4.422 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004662/0.1657, allocations: 55.88 kB / 0.5719 GB, free: 4.367 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00563/0.1713, allocations: 3.074 MB / 0.5749 GB, free: 1.18 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/0.1718, allocations: 0.7563 MB / 0.5757 GB, free: 408 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.1719, allocations: 30.28 kB / 0.5757 GB, free: 376 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.1721, allocations: 71.41 kB / 0.5758 GB, free: 304 kB / 430.1 MB Notification: Performance of SimCode: time 1.142e-06/0.1721, allocations: 0 / 0.5758 GB, free: 304 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03713/0.2092, allocations: 7.916 MB / 0.5835 GB, free: 8.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/12.82, allocations: 7.938 kB / 0.5835 GB, free: 8.492 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: 16.294375817058608]