Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",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.001653/0.001653, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001979/0.001979, allocations: 192 kB / 18.56 MB, free: 4.434 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.402/1.402, allocations: 222.9 MB / 242.3 MB, free: 15.17 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.2071/0.2071, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 67.27 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1181, allocations: 60.82 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005411/0.1235, allocations: 3.923 MB / 473.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00276/0.1263, allocations: 1.235 MB / 474.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003103/0.1267, allocations: 11.94 kB / 474.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.127, allocations: 114.9 kB / 474.6 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003877/0.1274, allocations: 206.2 kB / 474.8 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007843/0.1282, allocations: 347.4 kB / 475.2 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001042/0.1293, allocations: 1.019 MB / 476.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003192/0.1296, allocations: 178.3 kB / 476.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005193/0.1301, allocations: 442.6 kB / 476.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005225/0.1307, allocations: 490.2 kB / 477.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001233/0.1308, allocations: 76 kB / 477.3 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.131, allocations: 124 kB / 477.5 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.1313, allocations: 207.4 kB / 477.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003725/0.1316, allocations: 406 kB / 478.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000958/0.1326, allocations: 0.923 MB / 479 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1326, allocations: 0 / 479 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1326, allocations: 0 / 479 MB, free: 4.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.918e-05/0.1327, allocations: 0 / 479 MB, free: 4.594 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002237/0.1349, allocations: 1.09 MB / 480.1 MB, free: 3.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.135, allocations: 12.03 kB / 480.1 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001284/0.1351, allocations: 102.7 kB / 480.2 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.1353, allocations: 80 kB / 480.3 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005451/0.1358, allocations: 429.6 kB / 480.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.1359, allocations: 57.61 kB / 480.7 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.136, allocations: 71.84 kB / 480.8 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.1375, allocations: 0.8179 MB / 481.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.302e-05/0.1375, allocations: 11.89 kB / 481.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.443e-05/0.1376, allocations: 28 kB / 481.7 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.1376, allocations: 12 kB / 481.7 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.1391, allocations: 0.7631 MB / 482.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.1433, allocations: 2.562 MB / 485 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.1446, allocations: 0.6224 MB / 485.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007147/0.1453, allocations: 379.2 kB / 486 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.715e-05/0.1453, allocations: 15.98 kB / 486 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/0.1454, allocations: 42.5 kB / 486.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.204e-06/0.1454, allocations: 0 / 486.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.007316/0.1527, allocations: 3.545 MB / 489.6 MB, free: 9.418 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.1528, allocations: 140.5 kB / 489.7 MB, free: 9.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004422/0.1533, allocations: 425.8 kB / 490.2 MB, free: 8.824 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.526e-05/0.1533, allocations: 49.7 kB / 490.2 MB, free: 8.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.1535, allocations: 296.2 kB / 490.5 MB, free: 8.473 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/0.1538, allocations: 264.5 kB / 490.7 MB, free: 8.211 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002596/0.154, allocations: 166.5 kB / 490.9 MB, free: 8.043 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1542, allocations: 370.8 kB / 491.3 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007703/0.155, allocations: 385.8 kB / 491.7 MB, free: 7.297 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008632/0.1558, allocations: 0.5491 MB / 492.2 MB, free: 6.688 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.1571, allocations: 0.7335 MB / 492.9 MB, free: 5.898 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1572, allocations: 0 / 492.9 MB, free: 5.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002612/0.1598, allocations: 1.28 MB / 494.2 MB, free: 4.605 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.1598, allocations: 11.94 kB / 494.2 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.1598, allocations: 4 kB / 494.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/0.1612, allocations: 0.7648 MB / 495 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005508/0.1618, allocations: 147.7 kB / 495.1 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002293/0.1641, allocations: 2.686 MB / 497.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008847/0.165, allocations: 151.6 kB / 498 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.889e-05/0.1651, allocations: 39.98 kB / 498 MB, free: 0.6914 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003987/0.1655, allocations: 220.1 kB / 498.2 MB, free: 476 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/0.1657, allocations: 59.34 kB / 498.3 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.1659, allocations: 83.91 kB / 498.4 MB, free: 332 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.1659, allocations: 8 kB / 498.4 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.1659, allocations: 0 / 498.4 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.1659, allocations: 11.98 kB / 498.4 MB, free: 312 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.17, allocations: 2.179 MB / 0.4888 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.17, allocations: 0 / 0.4888 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005396/0.1705, allocations: 115.8 kB / 0.4889 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001204/0.1718, allocations: 0.7215 MB / 0.4896 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.126e-05/0.1718, allocations: 35.95 kB / 0.4897 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002361/0.1742, allocations: 2.631 MB / 0.4923 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.1742, allocations: 4.031 kB / 0.4923 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00354/0.1778, allocations: 1.767 MB / 0.494 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003568/0.1781, allocations: 216.2 kB / 0.4942 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.1783, allocations: 39.92 kB / 0.4942 GB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00083/0.1791, allocations: 119.8 kB / 0.4943 GB, free: 8.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003514/0.1795, allocations: 143.8 kB / 0.4945 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-05/0.1796, allocations: 31.95 kB / 0.4945 GB, free: 8.082 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003241/0.1799, allocations: 295.1 kB / 0.4948 GB, free: 7.793 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1799, allocations: 0 / 0.4948 GB, free: 7.793 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008193/0.1807, allocations: 200 kB / 0.495 GB, free: 7.598 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003853/0.1846, allocations: 2.37 MB / 0.4973 GB, free: 5.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002224/0.1868, allocations: 0.9688 MB / 0.4982 GB, free: 4.219 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.1868, allocations: 0 / 0.4982 GB, free: 4.219 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.1881, allocations: 0.5139 MB / 0.4987 GB, free: 3.707 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.1894, allocations: 114.4 kB / 0.4989 GB, free: 3.602 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.207/0.3964, allocations: 7.488 MB / 0.5062 GB, free: 48.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.3968, allocations: 0.9097 MB / 0.5071 GB, free: 47.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003371/0.3972, allocations: 61.3 kB / 0.5071 GB, free: 47.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002898/0.3975, allocations: 219.1 kB / 0.5073 GB, free: 47.81 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.3975, allocations: 0 / 0.5073 GB, free: 47.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04594/0.4434, allocations: 20.91 MB / 0.5277 GB, free: 37.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.03, allocations: 7.984 kB / 0.5277 GB, free: 37.93 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_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_TestFriction.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches