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.001309/0.001309, allocations: 115.6 kB / 20.43 MB, free: 1.309 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.001522/0.001522, allocations: 215 kB / 23.74 MB, free: 4.535 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.432/1.432, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.001673/0.001673, allocations: 51.92 kB / 377.8 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2691, 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.02387/0.293, allocations: 20.55 MB / 451.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01397/0.3069, allocations: 6.241 MB / 458 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003645/0.3106, allocations: 206.8 kB / 458.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01244/0.323, allocations: 6.437 MB / 464.6 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009324/0.3324, allocations: 3.506 MB / 468.1 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004146/0.3365, allocations: 1.662 MB / 469.8 MB, free: 124 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01857/0.3551, allocations: 13 MB / 482.8 MB, free: 3.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009371/0.3644, allocations: 6.294 MB / 489.1 MB, free: 12.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006813/0.3713, allocations: 3.805 MB / 492.9 MB, free: 8.898 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008889/0.3801, allocations: 5.352 MB / 498.2 MB, free: 3.531 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002515/0.3827, allocations: 0.7461 MB / 499 MB, free: 2.785 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004382/0.387, allocations: 1.744 MB / 0.489 GB, free: 1.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006002/0.393, allocations: 4.543 MB / 0.4934 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008237/0.4013, allocations: 4.931 MB / 0.4982 GB, free: 7.527 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01906/0.4203, allocations: 14.87 MB / 0.5127 GB, free: 8.598 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.4203, allocations: 0 / 0.5127 GB, free: 8.598 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4203, allocations: 0 / 0.5127 GB, free: 8.598 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004565/0.4208, allocations: 0 / 0.5127 GB, free: 8.598 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.03173/0.4525, allocations: 10.86 MB / 0.5234 GB, free: 13.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.4526, allocations: 8.031 kB / 0.5234 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003509/0.4561, allocations: 1.193 MB / 0.5245 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6594/1.116, allocations: 24.34 MB / 0.5483 GB, free: 92.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01749/1.133, allocations: 9.223 MB / 0.5573 GB, free: 85.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/1.133, allocations: 452.5 kB / 0.5577 GB, free: 84.65 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001704/1.135, allocations: 0.6074 MB / 0.5583 GB, free: 84.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02298/1.158, allocations: 16.74 MB / 0.5747 GB, free: 66.45 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002426/1.158, allocations: 103.3 kB / 0.5748 GB, free: 66.35 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006313/1.159, allocations: 278.2 kB / 0.575 GB, free: 66.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003293/1.162, allocations: 2.865 MB / 0.5778 GB, free: 63.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02157/1.184, allocations: 13.26 MB / 0.5908 GB, free: 50.01 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.07379/1.257, allocations: 68.18 MB / 0.6574 GB, free: 12.05 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02007/1.278, allocations: 7.198 MB / 0.6644 GB, free: 4.82 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005867/1.283, allocations: 4.053 MB / 0.6683 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0214/1.305, allocations: 11.38 MB / 0.6795 GB, free: 5.484 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.453e-05/1.305, allocations: 68.5 kB / 0.6795 GB, free: 5.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 7.044e-06/1.305, allocations: 0 / 0.6795 GB, free: 5.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=359): time 0.1831/1.488, allocations: 50.02 MB / 0.7284 GB, free: 3.621 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002428/1.488, allocations: 410.1 kB / 0.7288 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01213/1.5, allocations: 7.312 MB / 0.7359 GB, free: 11.86 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000785/1.501, allocations: 81.7 kB / 0.736 GB, free: 11.77 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00484/1.506, allocations: 5.527 MB / 0.7414 GB, free: 6.203 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002034/1.508, allocations: 1.376 MB / 0.7427 GB, free: 4.816 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003035/1.511, allocations: 1.699 MB / 0.7444 GB, free: 3.102 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000133/1.511, allocations: 305.1 kB / 0.7447 GB, free: 2.801 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2217/1.733, allocations: 4.121 MB / 0.7487 GB, free: 187 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008707/1.742, allocations: 8.86 MB / 0.7574 GB, free: 180.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/1.754, allocations: 13.95 MB / 0.771 GB, free: 169.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000149/1.755, allocations: 44.81 kB / 0.771 GB, free: 169.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03079/1.785, allocations: 17.83 MB / 0.7884 GB, free: 164.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.285e-05/1.785, allocations: 79.03 kB / 0.7885 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001634/1.786, allocations: 167.8 kB / 0.7887 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01597/1.802, allocations: 6.046 MB / 0.7946 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005386/1.807, allocations: 1.821 MB / 0.7963 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03602/1.843, allocations: 32.6 MB / 0.8282 GB, free: 125.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007624/1.851, allocations: 0.5423 MB / 0.8287 GB, free: 124.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/1.852, allocations: 480 kB / 0.8292 GB, free: 124.4 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.005754/1.858, allocations: 3.591 MB / 0.8327 GB, free: 121 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001299/1.859, allocations: 0.7076 MB / 0.8334 GB, free: 120.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0222/1.881, allocations: 12.01 MB / 0.8451 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.172e-05/1.881, allocations: 36 kB / 0.8451 GB, free: 108.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.037e-05/1.881, allocations: 20 kB / 0.8451 GB, free: 108.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.501e-05/1.881, allocations: 19.94 kB / 0.8452 GB, free: 108.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04197/1.923, allocations: 25.75 MB / 0.8703 GB, free: 82.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.201e-05/1.923, allocations: 7.938 kB / 0.8703 GB, free: 82.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002073/1.925, allocations: 463.3 kB / 0.8708 GB, free: 82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0153/1.941, allocations: 5.711 MB / 0.8763 GB, free: 76.27 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006068/1.941, allocations: 64 kB / 0.8764 GB, free: 76.21 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0348/1.976, allocations: 31.4 MB / 0.9071 GB, free: 44.65 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/1.976, allocations: 8 kB / 0.9071 GB, free: 44.64 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02783/2.004, allocations: 17.37 MB / 0.924 GB, free: 27.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001811/2.006, allocations: 0.6638 MB / 0.9247 GB, free: 26.44 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001327/2.007, allocations: 60 kB / 0.9247 GB, free: 26.38 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003241/2.01, allocations: 283.7 kB / 0.925 GB, free: 26.11 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00086/2.011, allocations: 266.6 kB / 0.9253 GB, free: 25.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000274/2.011, allocations: 99.98 kB / 0.9254 GB, free: 25.75 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005944/2.017, allocations: 4.702 MB / 0.93 GB, free: 21.08 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/2.017, allocations: 0 / 0.93 GB, free: 21.08 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007834/2.025, allocations: 2.037 MB / 0.9319 GB, free: 19.05 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.2338/2.259, allocations: 18.06 MB / 0.9496 GB, free: 184.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01812/2.277, 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.408e-05/2.277, allocations: 3.938 kB / 0.9598 GB, free: 183.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007469/2.285, allocations: 4.606 MB / 0.9643 GB, free: 181.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006251/2.291, allocations: 1.114 MB / 0.9654 GB, free: 181 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1346/2.425, allocations: 95.1 MB / 1.058 GB, free: 89.58 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005505/2.431, allocations: 5.726 MB / 1.064 GB, free: 83.81 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005493/2.436, allocations: 2.709 MB / 1.067 GB, free: 81.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003628/2.44, allocations: 3.885 MB / 1.07 GB, free: 77.21 MB / 0.545 GB Notification: Performance of SimCode: time 1.763e-06/2.44, allocations: 0 / 1.07 GB, free: 77.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4959/2.936, allocations: 169.5 MB / 1.236 GB, free: 129.2 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.46/46.4, allocations: 15.72 kB / 1.236 GB, free: 129.2 MB / 0.5607 GB " [Timeout remaining time 613] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --stepSize=9.94431e-05 --timeout=50 --tolerance=1e-06 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.mat","/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 50.60225736210123]