Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.0008524/0.0008524, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008129/0.0008129, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8922/0.8922, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 3.938 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.594e-05/1.769e-05, allocations: 2.281 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01217/0.01219, allocations: 17.65 MB / 342.3 MB, free: 14.18 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009897/0.02208, allocations: 6.02 MB / 348.3 MB, free: 8.141 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002342/0.02443, allocations: 198.9 kB / 348.5 MB, free: 7.945 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006264/0.03069, allocations: 6.495 MB / 355 MB, free: 1.43 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006465/0.03715, allocations: 3.612 MB / 358.6 MB, free: 13.8 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002889/0.04004, allocations: 1.887 MB / 360.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01288/0.05292, allocations: 15.09 MB / 375.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00768/0.0606, allocations: 7.802 MB / 383.4 MB, free: 4.906 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00874/0.06934, allocations: 5.789 MB / 389.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006345/0.07568, allocations: 5.823 MB / 395 MB, free: 9.27 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001602/0.07729, allocations: 0.7773 MB / 395.7 MB, free: 8.492 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00254/0.07983, allocations: 1.694 MB / 397.4 MB, free: 6.797 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003523/0.08335, allocations: 4.789 MB / 402.2 MB, free: 1.996 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003683/0.08703, allocations: 3.175 MB / 405.4 MB, free: 14.81 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01351/0.1005, allocations: 15.22 MB / 420.6 MB, free: 15.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.393e-06/0.1005, allocations: 0 / 420.6 MB, free: 15.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1005, allocations: 4 kB / 420.6 MB, free: 15.54 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004374/0.101, allocations: 0 / 420.6 MB, free: 15.54 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.02258/0.1236, allocations: 11.18 MB / 431.8 MB, free: 4.277 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.1236, allocations: 8.031 kB / 431.8 MB, free: 4.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002267/0.1259, allocations: 1.19 MB / 433 MB, free: 3.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4234/0.5493, allocations: 25.55 MB / 458.6 MB, free: 107.9 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01349/0.5627, allocations: 8.242 MB / 466.8 MB, free: 102.5 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/0.5629, allocations: 449.7 kB / 467.2 MB, free: 102.1 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001401/0.5643, allocations: 0.6145 MB / 467.9 MB, free: 101.5 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01806/0.5824, allocations: 17.07 MB / 484.9 MB, free: 83.48 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002132/0.5826, allocations: 99.28 kB / 485 MB, free: 83.38 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005295/0.5831, allocations: 285.2 kB / 485.3 MB, free: 83.15 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002263/0.5854, allocations: 2.856 MB / 488.1 MB, free: 80.31 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01839/0.6038, allocations: 13.25 MB / 0.4896 GB, free: 67.06 MB / 410.8 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05805/0.6618, allocations: 64.67 MB / 0.5528 GB, free: 1.504 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/0.6739, allocations: 7.465 MB / 0.5601 GB, free: 10.04 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004221/0.6782, allocations: 4.059 MB / 0.5641 GB, free: 5.969 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01452/0.6927, allocations: 10.96 MB / 0.5748 GB, free: 11.12 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.6927, allocations: 72.5 kB / 0.5748 GB, free: 11.05 MB / 442.8 MB Notification: Performance of pre-optimization done (n=293): time 5.631e-06/0.6927, allocations: 0 / 0.5748 GB, free: 11.05 MB / 442.8 MB Notification: Performance of matching and sorting (n=359): time 0.2788/0.9716, allocations: 52.36 MB / 0.626 GB, free: 156.6 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.982e-05/0.9717, allocations: 405.2 kB / 0.6263 GB, free: 156.1 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01009/0.9818, allocations: 8.653 MB / 0.6348 GB, free: 153.5 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008436/0.9826, allocations: 80.12 kB / 0.6349 GB, free: 153.4 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0027/0.9853, allocations: 5.483 MB / 0.6402 GB, free: 149.8 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002117/0.9874, allocations: 1.36 MB / 0.6416 GB, free: 148.8 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00169/0.9891, allocations: 1.691 MB / 0.6432 GB, free: 148 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 3.596e-05/0.9892, allocations: 305.1 kB / 0.6435 GB, free: 147.7 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003411/0.9926, allocations: 4.125 MB / 0.6475 GB, free: 146.2 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004368/0.9969, allocations: 9.09 MB / 0.6564 GB, free: 136.5 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009288/1.006, allocations: 13.95 MB / 0.67 GB, free: 120.5 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001076/1.006, allocations: 48 kB / 0.6701 GB, free: 120.5 MB / 474.8 MB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.02174/1.028, allocations: 17.82 MB / 0.6875 GB, free: 102.6 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.264e-05/1.028, allocations: 84.02 kB / 0.6876 GB, free: 102.5 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000118/1.028, allocations: 160 kB / 0.6877 GB, free: 102.4 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009253/1.038, allocations: 6.036 MB / 0.6936 GB, free: 96.32 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003812/1.041, allocations: 1.832 MB / 0.6954 GB, free: 94.48 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02419/1.066, allocations: 32.34 MB / 0.727 GB, free: 61.82 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006477/1.072, allocations: 0.6515 MB / 0.7276 GB, free: 61.17 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00131/1.073, allocations: 483.6 kB / 0.7281 GB, free: 60.7 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (967): * Single equations (assignments): 961 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.00549/1.079, allocations: 3.591 MB / 0.7316 GB, free: 57.1 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001928/1.081, allocations: 0.7102 MB / 0.7323 GB, free: 56.39 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01381/1.095, allocations: 12 MB / 0.744 GB, free: 44.32 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.134e-05/1.095, allocations: 40 kB / 0.744 GB, free: 44.28 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-05/1.095, allocations: 20 kB / 0.744 GB, free: 44.26 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.56e-05/1.095, allocations: 19.94 kB / 0.7441 GB, free: 44.24 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03137/1.126, allocations: 25.03 MB / 0.7685 GB, free: 18.8 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.812e-05/1.126, allocations: 9.078 kB / 0.7685 GB, free: 18.79 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/1.127, allocations: 464 kB / 0.769 GB, free: 18.34 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008895/1.136, allocations: 5.705 MB / 0.7745 GB, free: 12.62 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004925/1.137, allocations: 67.83 kB / 0.7746 GB, free: 12.55 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1941/1.331, allocations: 31.14 MB / 0.805 GB, free: 153.1 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.331, allocations: 9.094 kB / 0.805 GB, free: 153.1 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01934/1.35, allocations: 17.34 MB / 0.822 GB, free: 146.9 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002521/1.353, allocations: 0.7936 MB / 0.8227 GB, free: 146.9 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001546/1.354, allocations: 65.84 kB / 0.8228 GB, free: 146.8 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002731/1.357, allocations: 377.3 kB / 0.8232 GB, free: 146.8 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007554/1.358, allocations: 273.6 kB / 0.8234 GB, free: 146.7 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001963/1.358, allocations: 93.17 kB / 0.8235 GB, free: 146.7 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.005689/1.364, allocations: 5.54 MB / 0.8289 GB, free: 142.6 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.9e-07/1.364, allocations: 0 / 0.8289 GB, free: 142.6 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007713/1.371, allocations: 2.358 MB / 0.8312 GB, free: 140.2 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 2 (inertia.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 225 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01942/1.391, allocations: 18.08 MB / 0.8489 GB, free: 122.8 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01195/1.403, allocations: 10.49 MB / 0.8591 GB, free: 112.3 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/1.403, allocations: 0 / 0.8591 GB, free: 112.3 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005033/1.408, allocations: 4.616 MB / 0.8636 GB, free: 107.7 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005531/1.413, allocations: 1.115 MB / 0.8647 GB, free: 106.6 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1191/1.532, allocations: 98.77 MB / 0.9612 GB, free: 284 kB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00768/1.54, allocations: 5.27 MB / 0.9663 GB, free: 10.97 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.1886/1.729, allocations: 2.747 MB / 0.969 GB, free: 169.5 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004762/1.733, allocations: 3.919 MB / 0.9728 GB, free: 169.5 MB / 0.4949 GB Notification: Performance of SimCode: time 1.423e-06/1.733, allocations: 0 / 0.9728 GB, free: 169.5 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1701/1.903, allocations: 174.2 MB / 1.143 GB, free: 17.43 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.62/18.52, allocations: 7.031 kB / 1.143 GB, free: 17.43 MB / 0.4949 GB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 9.94431e-05 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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: 20.627792841754854]