Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.001713/0.001713, allocations: 107.1 kB / 20.44 MB, free: 1.172 MB / 14.72 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.002031/0.002031, allocations: 207.4 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.48/1.48, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.Engine1a,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 51.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2334, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02077/0.2542, allocations: 16.71 MB / 447.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01427/0.2685, allocations: 5.81 MB / 453.6 MB, free: 36 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003691/0.2722, allocations: 187 kB / 453.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0115/0.2836, allocations: 5.677 MB / 459.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009196/0.2928, allocations: 3.424 MB / 462.9 MB, free: 6.719 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003738/0.2966, allocations: 1.58 MB / 464.5 MB, free: 5.137 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01782/0.3144, allocations: 12.7 MB / 477.2 MB, free: 8.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008791/0.3232, allocations: 5.947 MB / 483.1 MB, free: 2.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00736/0.3305, allocations: 3.63 MB / 486.8 MB, free: 14.74 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008223/0.3388, allocations: 5.122 MB / 491.9 MB, free: 9.602 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002244/0.341, allocations: 0.7148 MB / 492.6 MB, free: 8.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004042/0.3451, allocations: 1.576 MB / 494.2 MB, free: 7.309 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005612/0.3507, allocations: 4.359 MB / 498.5 MB, free: 2.938 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006775/0.3574, allocations: 3.68 MB / 0.4904 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01899/0.3764, allocations: 14.43 MB / 0.5045 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3764, allocations: 0 / 0.5045 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3764, allocations: 0 / 0.5045 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.00046/0.3769, allocations: 0 / 0.5045 GB, free: 0.7578 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03279/0.4097, allocations: 10.5 MB / 0.5148 GB, free: 6.176 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.4097, allocations: 12.03 kB / 0.5148 GB, free: 6.164 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003531/0.4133, allocations: 1.14 MB / 0.5159 GB, free: 5.012 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6605/1.074, allocations: 24.29 MB / 0.5396 GB, free: 95.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0205/1.094, allocations: 9.061 MB / 0.5485 GB, free: 92.64 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003434/1.095, allocations: 430.1 kB / 0.5489 GB, free: 92.49 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002111/1.097, allocations: 0.5887 MB / 0.5495 GB, free: 92.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02642/1.123, allocations: 16.42 MB / 0.5655 GB, free: 75.63 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002769/1.123, allocations: 102.9 kB / 0.5656 GB, free: 75.53 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007319/1.124, allocations: 266.6 kB / 0.5659 GB, free: 75.31 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003422/1.128, allocations: 2.764 MB / 0.5686 GB, free: 72.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02409/1.152, allocations: 12.83 MB / 0.5811 GB, free: 59.72 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.07091/1.223, allocations: 61.36 MB / 0.641 GB, free: 13.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02003/1.243, allocations: 6.897 MB / 0.6477 GB, free: 6.395 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00583/1.248, allocations: 3.932 MB / 0.6516 GB, free: 2.457 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02148/1.27, allocations: 10.14 MB / 0.6615 GB, free: 8.43 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.53e-05/1.27, allocations: 72.33 kB / 0.6616 GB, free: 8.355 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 7.294e-06/1.27, allocations: 0 / 0.6616 GB, free: 8.355 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1798/1.45, allocations: 47.8 MB / 0.7082 GB, free: 8.887 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002484/1.45, allocations: 394.1 kB / 0.7086 GB, free: 8.414 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01215/1.462, allocations: 7.434 MB / 0.7159 GB, free: 1.008 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007582/1.463, allocations: 77.7 kB / 0.7159 GB, free: 0.9258 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004997/1.468, allocations: 5.347 MB / 0.7212 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00205/1.47, allocations: 1.294 MB / 0.7224 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002887/1.473, allocations: 1.659 MB / 0.724 GB, free: 8.559 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001582/1.473, allocations: 301.1 kB / 0.7243 GB, free: 8.262 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00667/1.48, allocations: 3.959 MB / 0.7282 GB, free: 4.293 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0117/1.491, allocations: 8.817 MB / 0.7368 GB, free: 9.137 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.228/1.719, allocations: 13.48 MB / 0.75 GB, free: 179 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001534/1.72, allocations: 48.81 kB / 0.75 GB, free: 179 MB / 0.545 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03218/1.752, allocations: 17.13 MB / 0.7667 GB, free: 174.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/1.752, allocations: 74.75 kB / 0.7668 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001726/1.752, allocations: 159.3 kB / 0.767 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01591/1.768, allocations: 5.758 MB / 0.7726 GB, free: 173.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00529/1.773, allocations: 1.757 MB / 0.7743 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03487/1.808, allocations: 31.07 MB / 0.8047 GB, free: 143.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006855/1.815, allocations: 0.521 MB / 0.8052 GB, free: 143.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/1.816, allocations: 475.8 kB / 0.8056 GB, free: 142.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (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 (934): * Single equations (assignments): 928 * 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,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.004635/1.821, allocations: 3.466 MB / 0.809 GB, free: 139.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001182/1.822, allocations: 0.6894 MB / 0.8097 GB, free: 139.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02112/1.843, allocations: 11.4 MB / 0.8208 GB, free: 127.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.855e-05/1.843, allocations: 39.09 kB / 0.8208 GB, free: 127.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-05/1.843, allocations: 22.39 kB / 0.8209 GB, free: 127.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.869e-05/1.843, allocations: 23.88 kB / 0.8209 GB, free: 127.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04384/1.887, allocations: 23.58 MB / 0.8439 GB, free: 103.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.842e-05/1.887, allocations: 8 kB / 0.8439 GB, free: 103.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001975/1.889, allocations: 419.4 kB / 0.8443 GB, free: 103.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01527/1.904, allocations: 5.365 MB / 0.8496 GB, free: 98 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000654/1.905, allocations: 60 kB / 0.8496 GB, free: 97.94 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03311/1.938, allocations: 29.76 MB / 0.8787 GB, free: 68.04 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/1.938, allocations: 11.94 kB / 0.8787 GB, free: 68.03 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02627/1.964, allocations: 16.45 MB / 0.8948 GB, free: 51.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/1.966, allocations: 0.639 MB / 0.8954 GB, free: 50.86 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001156/1.967, allocations: 63.67 kB / 0.8954 GB, free: 50.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003058/1.971, allocations: 263.6 kB / 0.8957 GB, free: 50.55 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007515/1.971, allocations: 258.4 kB / 0.8959 GB, free: 50.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002436/1.972, allocations: 84 kB / 0.896 GB, free: 50.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0063/1.978, allocations: 4.616 MB / 0.9005 GB, free: 45.63 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/1.978, allocations: 4.062 kB / 0.9005 GB, free: 45.62 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00935/1.987, allocations: 1.955 MB / 0.9024 GB, free: 43.68 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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,87,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.0265/2.014, allocations: 17.15 MB / 0.9192 GB, free: 26.34 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01542/2.029, allocations: 10.1 MB / 0.9291 GB, free: 16.19 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.429e-05/2.029, allocations: 4 kB / 0.9291 GB, free: 16.19 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007226/2.036, allocations: 4.361 MB / 0.9333 GB, free: 11.78 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007746/2.044, allocations: 1.074 MB / 0.9344 GB, free: 10.71 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3614/2.406, allocations: 91.6 MB / 1.024 GB, free: 137.8 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005717/2.411, allocations: 5.062 MB / 1.029 GB, free: 132.8 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005691/2.417, allocations: 2.623 MB / 1.031 GB, free: 130.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004406/2.421, allocations: 3.738 MB / 1.035 GB, free: 126.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.502e-06/2.421, allocations: 3.156 kB / 1.035 GB, free: 126.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5051/2.926, allocations: 162 MB / 1.193 GB, free: 175.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.72/27.65, allocations: 4.75 kB / 1.193 GB, free: 175.9 MB / 0.5607 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.49507280200487]