Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001702/0.001702, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001984/0.001984, allocations: 207.4 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 230.5 MB / 258.2 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 55.91 kB / 378.6 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2208, allocations: 53.41 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.0205/0.2413, allocations: 19.47 MB / 451.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01251/0.2538, allocations: 6.037 MB / 457.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00294/0.2567, allocations: 198.8 kB / 457.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01088/0.2676, allocations: 5.923 MB / 463.6 MB, free: 6.938 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008494/0.2761, allocations: 3.408 MB / 467 MB, free: 3.516 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003463/0.2796, allocations: 1.564 MB / 468.6 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01735/0.2969, allocations: 12.72 MB / 481.3 MB, free: 5.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008754/0.3057, allocations: 5.951 MB / 487.3 MB, free: 15.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006727/0.3124, allocations: 3.626 MB / 490.9 MB, free: 11.54 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008697/0.3211, allocations: 5.122 MB / 496 MB, free: 6.402 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002545/0.3236, allocations: 0.7148 MB / 496.7 MB, free: 5.688 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004429/0.3281, allocations: 1.705 MB / 498.4 MB, free: 3.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006002/0.3341, allocations: 4.348 MB / 0.491 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00823/0.3423, allocations: 4.748 MB / 0.4956 GB, free: 10.85 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01907/0.3614, allocations: 14.35 MB / 0.5096 GB, free: 12.44 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3614, allocations: 0 / 0.5096 GB, free: 12.44 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3614, allocations: 4 kB / 0.5096 GB, free: 12.44 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004848/0.3619, allocations: 0 / 0.5096 GB, free: 12.44 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02962/0.3915, allocations: 10.49 MB / 0.5199 GB, free: 1.855 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.3915, allocations: 8.031 kB / 0.5199 GB, free: 1.848 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002204/0.3918, allocations: 179.4 kB / 0.5201 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002821/0.3946, allocations: 1.148 MB / 0.5212 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6446/1.039, allocations: 24.29 MB / 0.5449 GB, free: 93.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01631/1.056, allocations: 9.039 MB / 0.5537 GB, free: 89.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002101/1.056, allocations: 424.1 kB / 0.5542 GB, free: 89.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001286/1.057, allocations: 0.5851 MB / 0.5547 GB, free: 88.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02168/1.079, allocations: 16.18 MB / 0.5705 GB, free: 71.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002526/1.079, allocations: 103.3 kB / 0.5706 GB, free: 71.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008833/1.08, allocations: 263.7 kB / 0.5709 GB, free: 71.27 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003347/1.083, allocations: 2.764 MB / 0.5736 GB, free: 68.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02084/1.104, allocations: 12.86 MB / 0.5861 GB, free: 55.65 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.06186/1.166, allocations: 66.27 MB / 0.6509 GB, free: 3.625 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01983/1.186, allocations: 6.918 MB / 0.6576 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005413/1.191, allocations: 3.931 MB / 0.6614 GB, free: 8.742 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01766/1.209, allocations: 11.02 MB / 0.6722 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.617e-05/1.209, allocations: 68.5 kB / 0.6723 GB, free: 13.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=280): time 5.08e-06/1.209, allocations: 0 / 0.6723 GB, free: 13.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=339): time 0.1884/1.397, allocations: 47.6 MB / 0.7188 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002407/1.398, allocations: 394.1 kB / 0.7191 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01323/1.411, allocations: 7.163 MB / 0.7261 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007381/1.411, allocations: 81.7 kB / 0.7262 GB, free: 6.727 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004834/1.416, allocations: 5.351 MB / 0.7314 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001869/1.418, allocations: 1.302 MB / 0.7327 GB, free: 20 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00357/1.422, allocations: 1.651 MB / 0.7343 GB, free: 14.36 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001244/1.422, allocations: 301.1 kB / 0.7346 GB, free: 14.06 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005821/1.428, allocations: 3.959 MB / 0.7385 GB, free: 10.09 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2069/1.635, allocations: 8.584 MB / 0.7469 GB, free: 182.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01438/1.649, allocations: 13.48 MB / 0.76 GB, free: 173.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001581/1.649, allocations: 43.38 kB / 0.7601 GB, free: 173.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03209/1.681, allocations: 17.13 MB / 0.7768 GB, free: 168.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.465e-05/1.681, allocations: 80.22 kB / 0.7769 GB, free: 168.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/1.681, allocations: 158.3 kB / 0.777 GB, free: 168.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01558/1.697, allocations: 5.775 MB / 0.7827 GB, free: 167.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005193/1.702, allocations: 1.749 MB / 0.7844 GB, free: 166.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03344/1.736, allocations: 31.36 MB / 0.815 GB, free: 134.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006902/1.743, allocations: 0.5254 MB / 0.8155 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001148/1.744, allocations: 480 kB / 0.816 GB, free: 133.7 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.004451/1.748, allocations: 3.452 MB / 0.8193 GB, free: 130.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/1.749, allocations: 0.683 MB / 0.82 GB, free: 130.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02097/1.77, allocations: 11.41 MB / 0.8311 GB, free: 118.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.873e-05/1.77, allocations: 43.94 kB / 0.8312 GB, free: 118.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.902e-05/1.77, allocations: 16 kB / 0.8312 GB, free: 118.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.658e-05/1.77, allocations: 23.92 kB / 0.8312 GB, free: 118.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0388/1.809, allocations: 24.64 MB / 0.8553 GB, free: 93.54 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-05/1.809, allocations: 4 kB / 0.8553 GB, free: 93.54 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/1.811, allocations: 423.3 kB / 0.8557 GB, free: 93.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01492/1.826, allocations: 5.368 MB / 0.8609 GB, free: 87.74 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006251/1.827, allocations: 63.98 kB / 0.861 GB, free: 87.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03208/1.859, allocations: 30.05 MB / 0.8903 GB, free: 57.46 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/1.859, allocations: 8.656 kB / 0.8903 GB, free: 57.45 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02554/1.884, allocations: 16.45 MB / 0.9064 GB, free: 40.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001739/1.886, allocations: 0.6446 MB / 0.907 GB, free: 40.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/1.887, allocations: 64 kB / 0.9071 GB, free: 40.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003139/1.89, allocations: 263.6 kB / 0.9074 GB, free: 39.84 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007419/1.891, allocations: 258.5 kB / 0.9076 GB, free: 39.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002513/1.891, allocations: 84 kB / 0.9077 GB, free: 39.51 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00551/1.897, allocations: 4.612 MB / 0.9122 GB, free: 34.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 6e-08/1.897, allocations: 0 / 0.9122 GB, free: 34.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007198/1.904, allocations: 1.96 MB / 0.9141 GB, free: 32.98 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.02492/1.929, allocations: 17.15 MB / 0.9308 GB, free: 15.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01388/1.943, allocations: 10.09 MB / 0.9407 GB, free: 5.504 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/1.943, allocations: 4.469 kB / 0.9407 GB, free: 5.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006809/1.95, allocations: 4.38 MB / 0.945 GB, free: 1.07 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005292/1.955, allocations: 1.069 MB / 0.946 GB, free: 4 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3076/2.262, allocations: 91.62 MB / 1.035 GB, free: 129.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00586/2.268, allocations: 5.525 MB / 1.041 GB, free: 123.8 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005363/2.274, allocations: 2.627 MB / 1.043 GB, free: 121.2 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00398/2.278, allocations: 3.741 MB / 1.047 GB, free: 117.5 MB / 0.5607 GB Notification: Performance of SimCode: time 8.82e-07/2.278, allocations: 0 / 1.047 GB, free: 117.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3953/2.673, allocations: 162.3 MB / 1.206 GB, free: 156 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.33/42, allocations: 12.78 kB / 1.206 GB, free: 156 MB / 0.5607 GB " [Timeout remaining time 618] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 47.91012771503301]