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.001342/0.001342, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007878/0.0007878, allocations: 157.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8607/0.8607, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.633e-06/1.633e-06, allocations: 0 / 318.5 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.485e-05/1.648e-05, allocations: 6.219 kB / 318.5 MB, free: 6.305 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01196/0.01197, allocations: 17.72 MB / 336.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007774/0.01975, allocations: 5.989 MB / 342.2 MB, free: 14.49 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/0.02097, allocations: 202.9 kB / 342.4 MB, free: 14.29 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005377/0.02635, allocations: 6.522 MB / 348.9 MB, free: 7.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004257/0.03061, allocations: 3.653 MB / 352.6 MB, free: 4.082 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001866/0.03247, allocations: 1.895 MB / 354.5 MB, free: 2.184 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008677/0.04115, allocations: 14.57 MB / 369 MB, free: 3.59 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005003/0.04615, allocations: 7.826 MB / 376.8 MB, free: 11.67 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004722/0.05087, allocations: 5.804 MB / 382.6 MB, free: 5.855 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005414/0.05629, allocations: 5.83 MB / 388.5 MB, free: 12 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001134/0.05742, allocations: 0.7813 MB / 389.3 MB, free: 15.23 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002415/0.05984, allocations: 1.705 MB / 391 MB, free: 13.52 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002999/0.06284, allocations: 4.812 MB / 395.8 MB, free: 8.699 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002351/0.06519, allocations: 3.206 MB / 399 MB, free: 5.484 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009854/0.07504, allocations: 15.29 MB / 414.3 MB, free: 6.148 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.07505, allocations: 0 / 414.3 MB, free: 6.148 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.07505, allocations: 0 / 414.3 MB, free: 6.148 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002186/0.07527, allocations: 4 kB / 414.3 MB, free: 6.145 MB / 378.7 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.01661/0.09187, allocations: 11.19 MB / 425.5 MB, free: 10.87 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/0.09193, allocations: 16.92 kB / 425.5 MB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001137/0.09307, allocations: 1.197 MB / 426.7 MB, free: 9.645 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1329/0.226, allocations: 25.55 MB / 452.2 MB, free: 60 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2593/0.4853, allocations: 8.234 MB / 460.5 MB, free: 111.7 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.4855, allocations: 452.4 kB / 460.9 MB, free: 111.5 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000669/0.4861, allocations: 0.6127 MB / 461.5 MB, free: 111.4 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01349/0.4996, allocations: 17.07 MB / 478.6 MB, free: 95.5 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001374/0.4997, allocations: 99.3 kB / 478.7 MB, free: 95.4 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004109/0.5002, allocations: 279.4 kB / 479 MB, free: 95.18 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002019/0.5022, allocations: 2.857 MB / 481.8 MB, free: 92.33 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01366/0.5158, allocations: 13.27 MB / 495.1 MB, free: 79.07 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.04632/0.5622, allocations: 64.68 MB / 0.5466 GB, free: 13.5 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01015/0.5723, allocations: 7.494 MB / 0.554 GB, free: 6.008 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00278/0.5751, allocations: 4.052 MB / 0.5579 GB, free: 1.941 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01168/0.5868, allocations: 10.97 MB / 0.5686 GB, free: 7.086 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.5868, allocations: 72.48 kB / 0.5687 GB, free: 7.008 MB / 426.8 MB Notification: Performance of pre-optimization done (n=294): time 6.121e-06/0.5868, allocations: 3.984 kB / 0.5687 GB, free: 7.004 MB / 426.8 MB Notification: Performance of matching and sorting (n=360): time 0.1009/0.6877, allocations: 52.47 MB / 0.6199 GB, free: 2.977 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.6878, allocations: 406.2 kB / 0.6203 GB, free: 2.492 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1605/0.8483, allocations: 8.664 MB / 0.6288 GB, free: 163.2 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006938/0.849, allocations: 84.61 kB / 0.6289 GB, free: 163.2 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001932/0.8509, allocations: 5.486 MB / 0.6342 GB, free: 160.6 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008919/0.8518, allocations: 1.362 MB / 0.6356 GB, free: 159.7 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001542/0.8534, allocations: 1.687 MB / 0.6372 GB, free: 158.8 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 3.001e-05/0.8534, allocations: 304.7 kB / 0.6375 GB, free: 158.5 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003438/0.8568, allocations: 4.125 MB / 0.6415 GB, free: 157.1 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004413/0.8612, allocations: 9.09 MB / 0.6504 GB, free: 149 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00778/0.869, allocations: 13.96 MB / 0.664 GB, free: 135.2 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-05/0.8691, allocations: 48 kB / 0.6641 GB, free: 135.1 MB / 474.8 MB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.01813/0.8872, allocations: 17.83 MB / 0.6815 GB, free: 119.4 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.755e-05/0.8873, allocations: 76 kB / 0.6816 GB, free: 119.3 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.702e-05/0.8873, allocations: 164.9 kB / 0.6817 GB, free: 119.1 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008826/0.8962, allocations: 6.062 MB / 0.6876 GB, free: 113 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002748/0.8989, allocations: 1.832 MB / 0.6894 GB, free: 111.2 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02374/0.9227, allocations: 32.32 MB / 0.721 GB, free: 78.56 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005648/0.9283, allocations: 0.6515 MB / 0.7216 GB, free: 77.91 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005385/0.9289, allocations: 491.9 kB / 0.7221 GB, free: 77.43 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 (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.004313/0.9332, allocations: 3.578 MB / 0.7256 GB, free: 73.84 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001145/0.9343, allocations: 0.7126 MB / 0.7263 GB, free: 73.12 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01313/0.9474, allocations: 12.02 MB / 0.738 GB, free: 61.04 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/0.9475, allocations: 40 kB / 0.7381 GB, free: 61 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/0.9475, allocations: 16 kB / 0.7381 GB, free: 60.98 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.9475, allocations: 23.94 kB / 0.7381 GB, free: 60.96 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02463/0.9721, allocations: 25.05 MB / 0.7626 GB, free: 35.53 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.9721, allocations: 4 kB / 0.7626 GB, free: 35.52 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.9733, allocations: 475.2 kB / 0.763 GB, free: 35.06 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008753/0.982, allocations: 5.689 MB / 0.7686 GB, free: 29.35 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002439/0.9823, allocations: 64 kB / 0.7686 GB, free: 29.29 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1844/1.167, allocations: 31.16 MB / 0.7991 GB, free: 143.4 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/1.167, allocations: 11.34 kB / 0.7991 GB, free: 143.4 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01781/1.184, allocations: 17.36 MB / 0.816 GB, free: 138.2 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002297/1.187, allocations: 1.442 MB / 0.8174 GB, free: 137.9 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005664/1.187, allocations: 70.64 kB / 0.8175 GB, free: 137.8 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001995/1.189, allocations: 378 kB / 0.8179 GB, free: 137.8 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005646/1.19, allocations: 281.7 kB / 0.8181 GB, free: 137.8 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/1.19, allocations: 89.62 kB / 0.8182 GB, free: 137.7 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.004815/1.195, allocations: 5.552 MB / 0.8236 GB, free: 135.9 MB / 474.8 MB Notification: Performance of sort global known variables: time 4.41e-07/1.195, allocations: 0 / 0.8236 GB, free: 135.9 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.005005/1.2, allocations: 2.374 MB / 0.826 GB, free: 134.9 MB / 474.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 (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.01697/1.217, allocations: 18.1 MB / 0.8436 GB, free: 120 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01077/1.228, allocations: 10.51 MB / 0.8539 GB, free: 109.5 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.228, allocations: 7.406 kB / 0.8539 GB, free: 109.5 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004358/1.232, allocations: 4.625 MB / 0.8584 GB, free: 104.9 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004054/1.236, allocations: 1.114 MB / 0.8595 GB, free: 103.8 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09724/1.333, allocations: 98.89 MB / 0.9561 GB, free: 13.52 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004614/1.338, allocations: 5.284 MB / 0.9612 GB, free: 8.203 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.004451/1.342, allocations: 2.752 MB / 0.9639 GB, free: 5.445 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1582/1.501, allocations: 3.934 MB / 0.9678 GB, free: 156.5 MB / 490.8 MB Notification: Performance of SimCode: time 1.012e-06/1.501, allocations: 0 / 0.9678 GB, free: 156.5 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1626/1.663, allocations: 174.7 MB / 1.138 GB, free: 6.402 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.9/18.57, allocations: 15.89 kB / 1.138 GB, free: 6.387 MB / 490.8 MB " [Timeout remaining time 641] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins/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: 20.662097205407917]