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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001002, allocations: 92.75 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 223.3 MB / 241.6 MB, free: 14.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002637/0.0002637, allocations: 4 kB / 301.5 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1025, allocations: 50.41 MB / 352 MB, free: 3.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.3106/0.4131, allocations: 108.9 MB / 460.8 MB, free: 7.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05107/0.4642, allocations: 21.21 MB / 482 MB, free: 1.793 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02467/0.4889, allocations: 0.4987 MB / 482.5 MB, free: 1.293 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003158/0.4921, allocations: 0.7305 MB / 483.3 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009184/0.5013, allocations: 3.256 MB / 486.5 MB, free: 13.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003801/0.5051, allocations: 1.536 MB / 488.1 MB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02027/0.5254, allocations: 17.78 MB / 0.494 GB, free: 9.945 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01611/0.5416, allocations: 10.65 MB / 0.5044 GB, free: 15.18 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007367/0.549, allocations: 2.852 MB / 0.5072 GB, free: 12.31 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007933/0.5569, allocations: 4.622 MB / 0.5117 GB, free: 7.676 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0022/0.5592, allocations: 292 kB / 0.512 GB, free: 7.391 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004185/0.5634, allocations: 1.318 MB / 0.5133 GB, free: 6.07 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005417/0.5688, allocations: 3.833 MB / 0.517 GB, free: 2.227 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008177/0.577, allocations: 4.261 MB / 0.5212 GB, free: 13.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01753/0.5946, allocations: 13.88 MB / 0.5347 GB, free: 4 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.5946, allocations: 0 / 0.5347 GB, free: 4 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.5946, allocations: 0 / 0.5347 GB, free: 4 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006911/0.5953, allocations: 0 / 0.5347 GB, free: 4 kB / 446.1 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.4979/1.093, allocations: 8.881 MB / 0.5434 GB, free: 44.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/1.093, allocations: 9.156 kB / 0.5434 GB, free: 44.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004036/1.097, allocations: 1.191 MB / 0.5446 GB, free: 44.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2987/1.396, allocations: 24.84 MB / 0.5688 GB, free: 37.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01927/1.415, allocations: 9.749 MB / 0.5783 GB, free: 30.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004032/1.416, allocations: 449.4 kB / 0.5788 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001919/1.418, allocations: 0.6112 MB / 0.5794 GB, free: 30.24 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02744/1.445, allocations: 16.81 MB / 0.5958 GB, free: 17.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002631/1.446, allocations: 96.95 kB / 0.5959 GB, free: 17.08 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007509/1.446, allocations: 281 kB / 0.5961 GB, free: 16.99 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003752/1.45, allocations: 2.863 MB / 0.5989 GB, free: 14.16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02517/1.475, allocations: 13.34 MB / 0.612 GB, free: 1.102 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.0937/1.569, allocations: 68.4 MB / 0.6788 GB, free: 11.53 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02115/1.59, allocations: 7.97 MB / 0.6865 GB, free: 3.426 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005934/1.596, allocations: 4.318 MB / 0.6908 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02082/1.617, allocations: 12.05 MB / 0.7025 GB, free: 2.945 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.684e-05/1.617, allocations: 67.08 kB / 0.7026 GB, free: 2.875 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=294): time 7.374e-06/1.617, allocations: 5.969 kB / 0.7026 GB, free: 2.871 MB / 0.5294 GB Notification: Performance of matching and sorting (n=360): time 0.387/2.004, allocations: 50.79 MB / 0.7522 GB, free: 262.6 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/2.004, allocations: 403.7 kB / 0.7526 GB, free: 262.1 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/2.015, allocations: 7.309 MB / 0.7597 GB, free: 259.6 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0008488/2.016, allocations: 84.89 kB / 0.7598 GB, free: 259.6 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002874/2.019, allocations: 5.348 MB / 0.765 GB, free: 255.5 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.00139/2.02, allocations: 1.318 MB / 0.7663 GB, free: 254.5 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008591/2.021, allocations: 0.7237 MB / 0.767 GB, free: 254.2 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.158e-05/2.021, allocations: 307.4 kB / 0.7673 GB, free: 253.9 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004929/2.026, allocations: 4.132 MB / 0.7713 GB, free: 252.4 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005944/2.032, allocations: 8.861 MB / 0.78 GB, free: 244.6 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/2.044, allocations: 13.96 MB / 0.7936 GB, free: 232.5 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.427e-05/2.044, allocations: 44 kB / 0.7937 GB, free: 232.5 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03161/2.075, allocations: 17.89 MB / 0.8111 GB, free: 215.3 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 8.003e-05/2.075, allocations: 76 kB / 0.8112 GB, free: 215.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/2.076, allocations: 160 kB / 0.8114 GB, free: 215.1 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01673/2.092, allocations: 6.078 MB / 0.8173 GB, free: 209 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00552/2.098, allocations: 1.832 MB / 0.8191 GB, free: 207.2 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03399/2.132, allocations: 30.89 MB / 0.8493 GB, free: 175.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008635/2.141, allocations: 0.5506 MB / 0.8498 GB, free: 175.3 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001537/2.142, allocations: 489 kB / 0.8503 GB, free: 174.9 MB / 0.5607 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 (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.005987/2.148, allocations: 3.574 MB / 0.8537 GB, free: 171.3 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001621/2.15, allocations: 0.675 MB / 0.8544 GB, free: 170.6 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02357/2.173, allocations: 12.11 MB / 0.8662 GB, free: 158.4 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.83e-05/2.173, allocations: 36 kB / 0.8663 GB, free: 158.4 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.275e-05/2.173, allocations: 20 kB / 0.8663 GB, free: 158.4 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.968e-05/2.174, allocations: 19.94 kB / 0.8663 GB, free: 158.4 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04176/2.215, allocations: 26.03 MB / 0.8917 GB, free: 131.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.301e-05/2.215, allocations: 11.98 kB / 0.8917 GB, free: 131.9 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002134/2.218, allocations: 464.5 kB / 0.8922 GB, free: 131.4 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01642/2.234, allocations: 5.744 MB / 0.8978 GB, free: 125.7 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006616/2.235, allocations: 64 kB / 0.8978 GB, free: 125.6 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03335/2.268, allocations: 29.8 MB / 0.9269 GB, free: 95.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/2.268, allocations: 7.938 kB / 0.927 GB, free: 95.39 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02788/2.296, allocations: 17.42 MB / 0.944 GB, free: 77.8 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00374/2.3, allocations: 1.359 MB / 0.9453 GB, free: 76.41 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002185/2.302, allocations: 67.98 kB / 0.9454 GB, free: 76.34 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004641/2.307, allocations: 284.2 kB / 0.9456 GB, free: 76.07 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001008/2.308, allocations: 258.7 kB / 0.9459 GB, free: 75.81 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003842/2.308, allocations: 96.92 kB / 0.946 GB, free: 75.72 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007509/2.316, allocations: 4.71 MB / 0.9506 GB, free: 71.05 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.61e-07/2.316, allocations: 0 / 0.9506 GB, free: 71.05 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.008966/2.325, allocations: 2.059 MB / 0.9526 GB, free: 68.99 MB / 0.5607 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 (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.03008/2.355, allocations: 18.13 MB / 0.9703 GB, free: 50.68 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01705/2.372, allocations: 10.92 MB / 0.9809 GB, free: 39.73 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/2.372, allocations: 3.938 kB / 0.9809 GB, free: 39.72 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008389/2.38, allocations: 4.952 MB / 0.9858 GB, free: 34.72 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01463/2.395, allocations: 1.053 MB / 0.9868 GB, free: 33.67 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3776/2.772, allocations: 122.5 MB / 1.106 GB, free: 167.8 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006543/2.779, allocations: 5.738 MB / 1.112 GB, free: 162 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006667/2.786, allocations: 2.709 MB / 1.115 GB, free: 159.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005088/2.791, allocations: 3.885 MB / 1.118 GB, free: 155.4 MB / 0.5607 GB Notification: Performance of SimCode: time 2.384e-06/2.791, allocations: 4 kB / 1.118 GB, free: 155.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4244/3.215, allocations: 162.9 MB / 1.278 GB, free: 215.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/3.215, allocations: 243.4 kB / 1.278 GB, free: 214.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.278/9.494, allocations: 1.406 kB / 1.278 GB, free: 214.9 MB / 0.5607 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches