Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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) 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(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001863/0.001863, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002054/0.002055, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.235/2.235, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 46.41 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1335, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00465/0.1382, allocations: 2.332 MB / 352.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.1404, allocations: 0.9286 MB / 353.4 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002787/0.1408, allocations: 0 / 353.4 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002748/0.1411, allocations: 47.58 kB / 353.5 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007296/0.1418, allocations: 139.1 kB / 353.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004685/0.1423, allocations: 175.7 kB / 353.8 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005573/0.1429, allocations: 410.8 kB / 354.2 MB, free: 288 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.1431, allocations: 64.72 kB / 354.2 MB, free: 220 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000318/0.1434, allocations: 183.5 kB / 354.4 MB, free: 36 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004455/0.1439, allocations: 219.4 kB / 354.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.908e-05/0.144, allocations: 32 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002637/0.1443, allocations: 115.8 kB / 354.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001844/0.1445, allocations: 95.72 kB / 354.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.1447, allocations: 167.2 kB / 355 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006011/0.1453, allocations: 450.9 kB / 355.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1453, allocations: 0 / 355.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1454, allocations: 4 kB / 355.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.1454, allocations: 0 / 355.5 MB, free: 14.97 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001576/0.147, allocations: 0.62 MB / 356.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.847e-05/0.147, allocations: 16.03 kB / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.1472, allocations: 62.73 kB / 356.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004097/0.1476, allocations: 52.53 kB / 356.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005574/0.1482, allocations: 308.2 kB / 356.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/0.1483, allocations: 84.52 kB / 356.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.1485, allocations: 28.38 kB / 356.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008447/0.1493, allocations: 381.2 kB / 357 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.109e-05/0.1494, allocations: 3.906 kB / 357 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.103e-05/0.1494, allocations: 12 kB / 357 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.1494, allocations: 8 kB / 357 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.1505, allocations: 413.9 kB / 357.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002344/0.1528, allocations: 1.237 MB / 358.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007268/0.1536, allocations: 362.4 kB / 359 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004068/0.154, allocations: 184.8 kB / 359.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.896e-05/0.1541, allocations: 11.98 kB / 359.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.1541, allocations: 38.56 kB / 359.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.886e-06/0.1541, allocations: 0 / 359.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005403/0.1595, allocations: 1.922 MB / 361.2 MB, free: 8.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.754e-05/0.1597, allocations: 84.86 kB / 361.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/0.1601, allocations: 238.1 kB / 361.5 MB, free: 8.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.148e-05/0.1602, allocations: 37.7 kB / 361.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.1603, allocations: 136.6 kB / 361.7 MB, free: 8.414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002197/0.1605, allocations: 146.1 kB / 361.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/0.1608, allocations: 90.02 kB / 361.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.161, allocations: 334.8 kB / 362.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000432/0.1614, allocations: 168.8 kB / 362.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004844/0.1619, allocations: 229.8 kB / 362.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009153/0.1628, allocations: 347.2 kB / 363 MB, free: 7.078 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1628, allocations: 0 / 363 MB, free: 7.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001323/0.1642, allocations: 0.559 MB / 363.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.1642, allocations: 8 kB / 363.5 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.1642, allocations: 4 kB / 363.5 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009147/0.1652, allocations: 244.7 kB / 363.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.1654, allocations: 59.89 kB / 363.8 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004713/0.1702, allocations: 2.882 MB / 366.7 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.1706, allocations: 27.95 kB / 366.7 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.459e-05/0.1707, allocations: 16 kB / 366.7 MB, free: 3.137 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.000366/0.1711, allocations: 165.8 kB / 366.9 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.1713, allocations: 27.72 kB / 366.9 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.1714, allocations: 39 kB / 367 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1714, allocations: 7.938 kB / 367 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1714, allocations: 3.938 kB / 367 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.1714, allocations: 3.984 kB / 367 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/0.1736, allocations: 1.101 MB / 368.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.1736, allocations: 4 kB / 368.1 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.1738, allocations: 43.91 kB / 368.1 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007259/0.1746, allocations: 232.7 kB / 368.4 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.397e-05/0.1746, allocations: 19.92 kB / 368.4 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2646/0.4392, allocations: 2.83 MB / 371.2 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4393, allocations: 0 / 371.2 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.4411, allocations: 0.8149 MB / 372 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.4413, allocations: 137.2 kB / 372.2 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.029e-05/0.4414, allocations: 12.22 kB / 372.2 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002747/0.4417, allocations: 26.44 kB / 372.2 MB, free: 23.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.4419, allocations: 64.5 kB / 372.3 MB, free: 23.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.53e-05/0.4419, allocations: 11.92 kB / 372.3 MB, free: 23.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002663/0.4422, allocations: 179.4 kB / 372.4 MB, free: 23.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4422, allocations: 2.281 kB / 372.5 MB, free: 23.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007545/0.443, allocations: 137.3 kB / 372.6 MB, free: 23.92 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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 {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002165/0.4451, allocations: 1.437 MB / 374 MB, free: 23.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.4466, allocations: 0.649 MB / 374.7 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.4466, allocations: 0 / 374.7 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007729/0.4474, allocations: 434.1 kB / 375.1 MB, free: 22.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.4478, allocations: 36.59 kB / 375.1 MB, free: 22.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006147/0.454, allocations: 3.429 MB / 378.6 MB, free: 20.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.4545, allocations: 0.7774 MB / 379.3 MB, free: 19.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002468/0.4548, allocations: 55.67 kB / 379.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.4549, allocations: 87.77 kB / 379.5 MB, free: 19.83 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4549, allocations: 0 / 379.5 MB, free: 19.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03952/0.4945, allocations: 9.711 MB / 389.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.93/18.43, allocations: 12.84 kB / 389.2 MB, free: 16.75 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches