Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001792/0.001792, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 189.8 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 55.92 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2397, allocations: 52.19 MB / 422.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02202/0.2617, allocations: 17.7 MB / 440.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01428/0.276, allocations: 6.002 MB / 446.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004593/0.2806, allocations: 206.8 kB / 446.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01259/0.2932, allocations: 6.184 MB / 452.7 MB, free: 304 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009973/0.3031, allocations: 3.559 MB / 456.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004873/0.308, allocations: 1.666 MB / 457.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01827/0.3263, allocations: 12.69 MB / 470.6 MB, free: 14.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008972/0.3352, allocations: 6.267 MB / 476.9 MB, free: 7.988 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006718/0.342, allocations: 3.829 MB / 480.7 MB, free: 4.148 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008098/0.3501, allocations: 5.055 MB / 485.8 MB, free: 15.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001951/0.352, allocations: 0.7461 MB / 486.5 MB, free: 14.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003687/0.3557, allocations: 1.619 MB / 488.1 MB, free: 12.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005142/0.3608, allocations: 4.55 MB / 492.7 MB, free: 8.148 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006918/0.3678, allocations: 3.855 MB / 496.5 MB, free: 4.273 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0187/0.3865, allocations: 15.01 MB / 0.4996 GB, free: 5.207 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.3865, allocations: 4 kB / 0.4996 GB, free: 5.203 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3865, allocations: 3.938 kB / 0.4996 GB, free: 5.199 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004178/0.3869, allocations: 0 / 0.4996 GB, free: 5.199 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.0312/0.4181, allocations: 10.88 MB / 0.5102 GB, free: 10.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.4181, allocations: 8.031 kB / 0.5102 GB, free: 10.22 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003492/0.4216, allocations: 1.193 MB / 0.5114 GB, free: 9.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.297/0.7187, allocations: 24.34 MB / 0.5351 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3929/1.112, allocations: 9.885 MB / 0.5448 GB, free: 99.96 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002406/1.112, allocations: 450.3 kB / 0.5452 GB, free: 99.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001528/1.113, allocations: 0.6032 MB / 0.5458 GB, free: 99.63 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02426/1.138, allocations: 17.05 MB / 0.5625 GB, free: 84.33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002882/1.138, allocations: 108 kB / 0.5626 GB, free: 84.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007755/1.139, allocations: 279.3 kB / 0.5628 GB, free: 84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003433/1.142, allocations: 2.862 MB / 0.5656 GB, free: 81.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02298/1.165, allocations: 13.24 MB / 0.5786 GB, free: 67.91 MB / 446.1 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.07132/1.236, allocations: 63.15 MB / 0.6402 GB, free: 3.664 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01966/1.256, allocations: 7.222 MB / 0.6473 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006313/1.262, allocations: 4.056 MB / 0.6512 GB, free: 8.375 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02354/1.286, allocations: 10.47 MB / 0.6615 GB, free: 14.03 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.453e-05/1.286, allocations: 68.5 kB / 0.6615 GB, free: 13.96 MB / 478.1 MB Notification: Performance of pre-optimization done (n=294): time 6.602e-06/1.286, allocations: 0 / 0.6615 GB, free: 13.96 MB / 478.1 MB Notification: Performance of matching and sorting (n=360): time 0.1951/1.481, allocations: 50.34 MB / 0.7107 GB, free: 12.02 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002664/1.481, allocations: 398.2 kB / 0.7111 GB, free: 11.55 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01224/1.494, allocations: 7.603 MB / 0.7185 GB, free: 3.98 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008182/1.494, allocations: 81.7 kB / 0.7186 GB, free: 3.895 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.005253/1.5, allocations: 5.519 MB / 0.724 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002398/1.502, allocations: 1.386 MB / 0.7253 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003549/1.506, allocations: 1.699 MB / 0.727 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001361/1.506, allocations: 312.9 kB / 0.7273 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006778/1.513, allocations: 4.124 MB / 0.7313 GB, free: 6.781 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.226/1.739, allocations: 9.087 MB / 0.7402 GB, free: 174.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01401/1.753, allocations: 13.95 MB / 0.7538 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002299/1.753, allocations: 46.62 kB / 0.7538 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03325/1.786, allocations: 17.84 MB / 0.7713 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002873/1.786, allocations: 76 kB / 0.7713 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003114/1.787, allocations: 163.9 kB / 0.7715 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01737/1.804, allocations: 6.062 MB / 0.7774 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005787/1.81, allocations: 1.825 MB / 0.7792 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03596/1.846, allocations: 32.3 MB / 0.8107 GB, free: 121.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007757/1.854, allocations: 0.5406 MB / 0.8113 GB, free: 120.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00156/1.855, allocations: 492.6 kB / 0.8117 GB, free: 120.4 MB / 0.5294 GB 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 (968): * Single equations (assignments): 962 * 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 {(8,96,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005533/1.861, allocations: 3.585 MB / 0.8152 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001365/1.862, allocations: 0.7156 MB / 0.8159 GB, free: 116.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02228/1.884, allocations: 12.02 MB / 0.8277 GB, free: 104.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-05/1.884, allocations: 36 kB / 0.8277 GB, free: 104.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.669e-05/1.884, allocations: 20 kB / 0.8277 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.547e-05/1.884, allocations: 15.94 kB / 0.8277 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04195/1.926, allocations: 24.78 MB / 0.8519 GB, free: 79.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-05/1.926, allocations: 8 kB / 0.852 GB, free: 79.37 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002175/1.929, allocations: 463.3 kB / 0.8524 GB, free: 78.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01649/1.945, allocations: 5.691 MB / 0.858 GB, free: 73.21 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007795/1.946, allocations: 71.98 kB / 0.858 GB, free: 73.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03561/1.981, allocations: 31.11 MB / 0.8884 GB, free: 41.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/1.981, allocations: 8.031 kB / 0.8884 GB, free: 41.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02907/2.011, allocations: 17.38 MB / 0.9054 GB, free: 24.59 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005901/2.016, allocations: 1.316 MB / 0.9067 GB, free: 23.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002717/2.019, allocations: 64 kB / 0.9067 GB, free: 23.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005318/2.024, allocations: 279.6 kB / 0.907 GB, free: 22.95 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001394/2.026, allocations: 262.6 kB / 0.9072 GB, free: 22.69 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003262/2.026, allocations: 92 kB / 0.9073 GB, free: 22.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007875/2.034, allocations: 4.718 MB / 0.9119 GB, free: 17.92 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.51e-07/2.034, allocations: 0 / 0.9119 GB, free: 17.92 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009477/2.044, allocations: 2.052 MB / 0.9139 GB, free: 15.87 MB / 0.5294 GB 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 (232): * Single equations (assignments): 226 * 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.03119/2.075, allocations: 18.09 MB / 0.9316 GB, free: 13.61 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2416/2.316, allocations: 10.53 MB / 0.9419 GB, free: 193 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.669e-05/2.316, allocations: 3.969 kB / 0.9419 GB, free: 193 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008424/2.325, allocations: 4.62 MB / 0.9464 GB, free: 192.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006942/2.332, allocations: 1.106 MB / 0.9475 GB, free: 191.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1363/2.468, allocations: 95.14 MB / 1.04 GB, free: 100.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006073/2.474, allocations: 5.279 MB / 1.046 GB, free: 95.21 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005568/2.48, allocations: 2.717 MB / 1.048 GB, free: 92.49 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003822/2.484, allocations: 3.897 MB / 1.052 GB, free: 88.59 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/2.484, allocations: 0 / 1.052 GB, free: 88.59 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4451/2.929, allocations: 169.6 MB / 1.218 GB, free: 121.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.03/27.96, allocations: 4 kB / 1.218 GB, free: 121.9 MB / 0.545 GB " [Timeout remaining time 632] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 30.77328262012452]