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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2147/0.2147, allocations: 44.17 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 63.67 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1335, allocations: 60.82 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004429/0.138, allocations: 2.233 MB / 471.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.1397, allocations: 0.7362 MB / 472.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002386/0.14, allocations: 4 kB / 472.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002374/0.1402, allocations: 43.59 kB / 472.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.1405, allocations: 63.47 kB / 472.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005262/0.141, allocations: 131.7 kB / 472.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004087/0.1414, allocations: 335.2 kB / 472.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.1416, allocations: 92.55 kB / 473 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002435/0.1419, allocations: 139.6 kB / 473.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.1421, allocations: 155.4 kB / 473.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.1422, allocations: 24 kB / 473.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.1424, allocations: 75.89 kB / 473.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.1425, allocations: 67.81 kB / 473.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.1426, allocations: 131.4 kB / 473.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004219/0.143, allocations: 335.2 kB / 473.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1431, allocations: 0 / 473.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1431, allocations: 4 kB / 473.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.1431, allocations: 4 kB / 473.9 MB, free: 9.707 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001049/0.1441, allocations: 0.5496 MB / 474.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1442, allocations: 11.97 kB / 474.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.76e-05/0.1443, allocations: 54.73 kB / 474.5 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.1443, allocations: 28.66 kB / 474.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003162/0.1447, allocations: 247.9 kB / 474.8 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.1447, allocations: 12.81 kB / 474.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.438e-05/0.1448, allocations: 24.38 kB / 474.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005114/0.1453, allocations: 263.3 kB / 475.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1453, allocations: 0 / 475.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.1454, allocations: 15.94 kB / 475.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.1454, allocations: 7.938 kB / 475.1 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004768/0.1458, allocations: 241.5 kB / 475.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.1472, allocations: 0.7323 MB / 476.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005241/0.1477, allocations: 242.5 kB / 476.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002583/0.148, allocations: 143.5 kB / 476.4 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.148, allocations: 4 kB / 476.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.148, allocations: 35 kB / 476.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.352e-06/0.1481, allocations: 0 / 476.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.003176/0.1512, allocations: 1.458 MB / 477.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.1513, allocations: 59.41 kB / 478 MB, free: 5.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.1515, allocations: 199.1 kB / 478.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/0.1515, allocations: 33.7 kB / 478.2 MB, free: 5.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.682e-05/0.1516, allocations: 132.7 kB / 478.3 MB, free: 4.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.042e-05/0.1517, allocations: 110.5 kB / 478.5 MB, free: 4.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.1519, allocations: 69.59 kB / 478.5 MB, free: 4.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.152, allocations: 338.8 kB / 478.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002655/0.1523, allocations: 127.9 kB / 479 MB, free: 4.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000308/0.1526, allocations: 164.2 kB / 479.1 MB, free: 4.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004458/0.1531, allocations: 251.3 kB / 479.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1531, allocations: 0 / 479.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008107/0.1539, allocations: 437.7 kB / 479.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1539, allocations: 11.94 kB / 479.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.1539, allocations: 0 / 479.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005441/0.1545, allocations: 236.7 kB / 480.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.1547, allocations: 59.91 kB / 480.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007581/0.1555, allocations: 0.7553 MB / 480.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002697/0.1558, allocations: 35.98 kB / 480.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.1558, allocations: 15.94 kB / 480.9 MB, free: 2.281 MB / 350.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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001657/0.156, allocations: 141.9 kB / 481.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.918e-05/0.156, allocations: 23.75 kB / 481.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.83e-05/0.1561, allocations: 34.64 kB / 481.1 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1561, allocations: 4 kB / 481.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.1562, allocations: 0 / 481.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1562, allocations: 0 / 481.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.1578, allocations: 0.9519 MB / 482.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1578, allocations: 3.938 kB / 482.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000233/0.158, allocations: 47.97 kB / 482.1 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004106/0.1585, allocations: 224.6 kB / 482.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.1585, allocations: 11.94 kB / 482.4 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006526/0.1592, allocations: 0.7123 MB / 483.1 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1592, allocations: 0 / 483.1 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.1604, allocations: 0.6373 MB / 483.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.1605, allocations: 128.8 kB / 483.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.677e-05/0.1606, allocations: 11.94 kB / 483.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002632/0.1608, allocations: 36.02 kB / 483.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.161, allocations: 47.92 kB / 483.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.592e-05/0.161, allocations: 15.98 kB / 483.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001326/0.1612, allocations: 148.2 kB / 484.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1612, allocations: 3.938 kB / 484.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000394/0.1616, allocations: 80 kB / 484.2 MB, free: 14.89 MB / 366.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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001513/0.1631, allocations: 1.202 MB / 485.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007631/0.1639, allocations: 335.8 kB / 485.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1639, allocations: 0 / 485.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003412/0.1642, allocations: 164.1 kB / 485.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/0.1647, allocations: 32.17 kB / 485.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00502/0.1697, allocations: 3.097 MB / 489 MB, free: 9.934 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.17, allocations: 0.7525 MB / 489.7 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.55e-05/0.1701, allocations: 22.28 kB / 489.8 MB, free: 9.129 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.1702, allocations: 75.41 kB / 489.8 MB, free: 9.059 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1703, allocations: 0 / 489.8 MB, free: 9.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02856/0.1988, allocations: 7.431 MB / 497.3 MB, free: 1.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.39, allocations: 11.81 kB / 497.3 MB, free: 1.746 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv","/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) Reference file matches