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.001793/0.001793, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.002305/0.002305, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.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 0.001617/0.001617, allocations: 43.92 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2674, allocations: 53.36 MB / 431.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02346/0.2909, allocations: 20.55 MB / 451.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01353/0.3044, allocations: 6.249 MB / 458 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003321/0.3077, allocations: 206.8 kB / 458.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0124/0.3201, allocations: 6.437 MB / 464.6 MB, free: 5.297 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00911/0.3292, allocations: 3.494 MB / 468.1 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004062/0.3333, allocations: 1.665 MB / 469.8 MB, free: 124 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01953/0.3528, allocations: 12.99 MB / 482.8 MB, free: 3.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009464/0.3623, allocations: 6.294 MB / 489.1 MB, free: 12.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007755/0.3701, allocations: 3.805 MB / 492.9 MB, free: 8.902 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00991/0.38, allocations: 5.356 MB / 498.2 MB, free: 3.531 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002819/0.3828, allocations: 0.7461 MB / 499 MB, free: 2.785 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005536/0.3883, allocations: 1.744 MB / 0.489 GB, free: 1.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007477/0.3958, allocations: 4.535 MB / 0.4934 GB, free: 12.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01015/0.4059, allocations: 4.939 MB / 0.4982 GB, free: 7.527 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02063/0.4266, allocations: 14.86 MB / 0.5127 GB, free: 8.609 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4266, allocations: 4 kB / 0.5127 GB, free: 8.605 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4266, allocations: 3.938 kB / 0.5127 GB, free: 8.602 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004507/0.427, allocations: 0 / 0.5127 GB, free: 8.602 MB / 430.1 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.03164/0.4587, allocations: 10.86 MB / 0.5234 GB, free: 13.65 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.4587, allocations: 8.031 kB / 0.5234 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003534/0.4623, allocations: 1.19 MB / 0.5245 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6677/1.13, allocations: 24.34 MB / 0.5483 GB, free: 92.22 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01925/1.149, allocations: 9.218 MB / 0.5573 GB, free: 85.09 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000405/1.15, allocations: 448.2 kB / 0.5577 GB, free: 84.71 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002853/1.152, allocations: 0.6107 MB / 0.5583 GB, free: 84.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02721/1.18, allocations: 16.75 MB / 0.5747 GB, free: 66.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003525/1.18, allocations: 95.3 kB / 0.5748 GB, free: 66.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001192/1.181, allocations: 282.1 kB / 0.575 GB, free: 66.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003513/1.185, allocations: 2.855 MB / 0.5778 GB, free: 63.33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02403/1.209, allocations: 13.27 MB / 0.5908 GB, free: 50.05 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.08236/1.291, allocations: 68.18 MB / 0.6574 GB, free: 12.09 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02098/1.312, allocations: 7.192 MB / 0.6644 GB, free: 4.863 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006289/1.318, allocations: 4.066 MB / 0.6684 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0239/1.342, allocations: 11.38 MB / 0.6795 GB, free: 5.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.218e-05/1.342, allocations: 60.56 kB / 0.6795 GB, free: 5.453 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 6.662e-06/1.342, allocations: 3.938 kB / 0.6795 GB, free: 5.449 MB / 494.1 MB Notification: Performance of matching and sorting (n=359): time 0.1917/1.534, allocations: 50.01 MB / 0.7284 GB, free: 3.664 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002926/1.534, allocations: 410.1 kB / 0.7288 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01429/1.549, allocations: 7.316 MB / 0.7359 GB, free: 11.89 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009073/1.55, allocations: 85.61 kB / 0.736 GB, free: 11.81 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005498/1.555, allocations: 5.519 MB / 0.7414 GB, free: 6.246 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002277/1.557, allocations: 1.372 MB / 0.7427 GB, free: 4.863 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003896/1.561, allocations: 1.711 MB / 0.7444 GB, free: 3.137 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001488/1.561, allocations: 301.1 kB / 0.7447 GB, free: 2.84 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.238/1.799, allocations: 4.12 MB / 0.7487 GB, free: 187 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008922/1.808, allocations: 8.86 MB / 0.7574 GB, free: 180.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01333/1.822, allocations: 13.96 MB / 0.771 GB, free: 169.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000188/1.822, allocations: 45.91 kB / 0.771 GB, free: 169.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03514/1.857, allocations: 17.82 MB / 0.7884 GB, free: 164.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/1.857, allocations: 79.69 kB / 0.7885 GB, free: 164.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001798/1.857, allocations: 165.4 kB / 0.7887 GB, free: 164.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01663/1.874, allocations: 6.042 MB / 0.7946 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005709/1.88, allocations: 1.832 MB / 0.7964 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03666/1.916, allocations: 32.6 MB / 0.8282 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007762/1.924, allocations: 0.5407 MB / 0.8287 GB, free: 125 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00176/1.926, allocations: 484 kB / 0.8292 GB, free: 124.5 MB / 0.545 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 (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.007137/1.933, allocations: 3.588 MB / 0.8327 GB, free: 121 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001513/1.934, allocations: 0.7076 MB / 0.8334 GB, free: 120.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02329/1.958, allocations: 12 MB / 0.8451 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-05/1.958, allocations: 39.94 kB / 0.8451 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.172e-05/1.958, allocations: 23.75 kB / 0.8452 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.145e-05/1.958, allocations: 19.94 kB / 0.8452 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04683/2.005, allocations: 25.75 MB / 0.8703 GB, free: 82.52 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.895e-05/2.005, allocations: 4 kB / 0.8703 GB, free: 82.52 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002207/2.007, allocations: 469.2 kB / 0.8708 GB, free: 82.06 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01609/2.023, allocations: 5.701 MB / 0.8763 GB, free: 76.34 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007922/2.024, allocations: 64 kB / 0.8764 GB, free: 76.28 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03557/2.059, allocations: 31.4 MB / 0.9071 GB, free: 44.72 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.331e-06/2.059, allocations: 11.94 kB / 0.9071 GB, free: 44.71 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02824/2.088, allocations: 17.36 MB / 0.924 GB, free: 27.17 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001867/2.09, allocations: 0.6595 MB / 0.9247 GB, free: 26.51 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001614/2.091, allocations: 67.98 kB / 0.9247 GB, free: 26.45 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003778/2.095, allocations: 275.6 kB / 0.925 GB, free: 26.18 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009773/2.096, allocations: 262.7 kB / 0.9253 GB, free: 25.92 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003088/2.096, allocations: 99.42 kB / 0.9253 GB, free: 25.82 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007019/2.103, allocations: 4.714 MB / 0.93 GB, free: 21.15 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/2.103, allocations: 0 / 0.93 GB, free: 21.15 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008576/2.112, allocations: 2.028 MB / 0.9319 GB, free: 19.12 MB / 0.545 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 (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.2439/2.356, allocations: 18.07 MB / 0.9496 GB, free: 184.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01942/2.375, allocations: 10.51 MB / 0.9598 GB, free: 183.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/2.375, allocations: 5.062 kB / 0.9598 GB, free: 183.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008074/2.383, allocations: 4.607 MB / 0.9643 GB, free: 181.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008137/2.391, allocations: 1.107 MB / 0.9654 GB, free: 181 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1535/2.545, allocations: 95.09 MB / 1.058 GB, free: 89.73 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008586/2.553, allocations: 5.724 MB / 1.064 GB, free: 83.96 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006299/2.56, allocations: 2.721 MB / 1.067 GB, free: 81.24 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00503/2.565, allocations: 3.877 MB / 1.07 GB, free: 77.36 MB / 0.545 GB Notification: Performance of SimCode: time 1.333e-06/2.565, allocations: 0 / 1.07 GB, free: 77.36 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.479/3.044, allocations: 169.5 MB / 1.236 GB, free: 129.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 44.95/48, allocations: 4.922 kB / 1.236 GB, free: 129.3 MB / 0.5607 GB " [Timeout remaining time 612] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/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: 50.84482870899956]