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.001241/0.001241, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001333/0.001333, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.285/1.285, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 51.8 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09478/0.09596, allocations: 49.44 MB / 349.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2649/0.3609, allocations: 111.4 MB / 460.9 MB, free: 5.223 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.06134/0.4222, allocations: 21.27 MB / 482.2 MB, free: 15.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02638/0.4487, allocations: 0.5026 MB / 482.7 MB, free: 15.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01228/0.461, allocations: 6.372 MB / 489.1 MB, free: 9.004 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009662/0.4708, allocations: 3.254 MB / 492.3 MB, free: 5.738 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004982/0.4758, allocations: 1.535 MB / 493.9 MB, free: 4.203 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02121/0.497, allocations: 17.77 MB / 0.4996 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0114/0.5084, allocations: 7.889 MB / 0.5074 GB, free: 10.43 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007413/0.5159, allocations: 3.383 MB / 0.5107 GB, free: 7.035 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009165/0.5251, allocations: 5.297 MB / 0.5158 GB, free: 1.723 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003413/0.5286, allocations: 0.5 MB / 0.5163 GB, free: 1.223 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005992/0.5346, allocations: 1.537 MB / 0.5178 GB, free: 15.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007376/0.542, allocations: 4.157 MB / 0.5219 GB, free: 11.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00998/0.552, allocations: 4.634 MB / 0.5264 GB, free: 6.855 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2613/0.8133, allocations: 14.31 MB / 0.5404 GB, free: 30.26 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.8134, allocations: 4.172 kB / 0.5404 GB, free: 30.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.8134, allocations: 0 / 0.5404 GB, free: 30.26 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005762/0.814, allocations: 0.7188 kB / 0.5404 GB, free: 30.26 MB / 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.04239/0.8564, allocations: 10.69 MB / 0.5508 GB, free: 26.55 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.8564, allocations: 10.38 kB / 0.5508 GB, free: 26.55 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006727/0.8632, allocations: 1.188 MB / 0.552 GB, free: 26.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2591/1.122, allocations: 24.29 MB / 0.5757 GB, free: 22.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02063/1.143, allocations: 9.759 MB / 0.5852 GB, free: 19.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003221/1.143, allocations: 451.1 kB / 0.5857 GB, free: 19.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003357/1.147, allocations: 0.6114 MB / 0.5863 GB, free: 19.37 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03649/1.183, allocations: 16.75 MB / 0.6026 GB, free: 6.977 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004449/1.184, allocations: 100 kB / 0.6027 GB, free: 6.91 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002541/1.186, allocations: 272.9 kB / 0.603 GB, free: 6.691 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00397/1.19, allocations: 2.86 MB / 0.6058 GB, free: 3.867 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02927/1.219, allocations: 13.27 MB / 0.6187 GB, free: 6.867 MB / 462.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.1034/1.323, allocations: 68.35 MB / 0.6855 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02256/1.346, allocations: 7.922 MB / 0.6932 GB, free: 9.309 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007091/1.353, allocations: 4.324 MB / 0.6974 GB, free: 4.977 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0251/1.378, allocations: 12.05 MB / 0.7092 GB, free: 8.816 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.421e-05/1.378, allocations: 70.44 kB / 0.7093 GB, free: 8.742 MB / 0.545 GB Notification: Performance of pre-optimization done (n=294): time 6.463e-06/1.378, allocations: 0 / 0.7093 GB, free: 8.742 MB / 0.545 GB Notification: Performance of matching and sorting (n=360): time 0.4738/1.852, allocations: 49.89 MB / 0.758 GB, free: 159 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/1.852, allocations: 402.7 kB / 0.7584 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0117/1.864, allocations: 7.311 MB / 0.7655 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001008/1.865, allocations: 76.89 kB / 0.7656 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002905/1.868, allocations: 5.352 MB / 0.7708 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001549/1.869, allocations: 1.314 MB / 0.7721 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002511/1.872, allocations: 1.7 MB / 0.7738 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.97e-05/1.872, allocations: 301.1 kB / 0.7741 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005222/1.877, allocations: 4.13 MB / 0.7781 GB, free: 152 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008194/1.885, allocations: 8.864 MB / 0.7867 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01553/1.901, allocations: 13.96 MB / 0.8004 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001744/1.901, allocations: 48 kB / 0.8004 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03602/1.937, allocations: 17.87 MB / 0.8179 GB, free: 113.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/1.937, allocations: 76 kB / 0.818 GB, free: 113.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001659/1.937, allocations: 160 kB / 0.8181 GB, free: 113.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01742/1.955, allocations: 6.068 MB / 0.824 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006923/1.962, allocations: 1.829 MB / 0.8258 GB, free: 105.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03944/2.001, allocations: 30.82 MB / 0.8559 GB, free: 74.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00946/2.011, allocations: 0.5383 MB / 0.8564 GB, free: 73.85 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002184/2.013, allocations: 490.5 kB / 0.8569 GB, free: 73.38 MB / 0.5606 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.006835/2.02, allocations: 3.586 MB / 0.8604 GB, free: 69.95 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001794/2.022, allocations: 0.671 MB / 0.8611 GB, free: 69.27 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02262/2.044, allocations: 12.09 MB / 0.8729 GB, free: 57.17 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.374e-05/2.044, allocations: 39.2 kB / 0.8729 GB, free: 57.14 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-05/2.044, allocations: 25.47 kB / 0.8729 GB, free: 57.11 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.616e-05/2.045, allocations: 19.94 kB / 0.873 GB, free: 57.09 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04761/2.092, allocations: 26.02 MB / 0.8984 GB, free: 30.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.153e-05/2.092, allocations: 4 kB / 0.8984 GB, free: 30.79 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/2.094, allocations: 468.7 kB / 0.8988 GB, free: 30.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01554/2.11, allocations: 5.724 MB / 0.9044 GB, free: 24.61 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000584/2.11, allocations: 69.36 kB / 0.9045 GB, free: 24.55 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2769/2.387, allocations: 29.71 MB / 0.9335 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/2.387, allocations: 9.312 kB / 0.9335 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03212/2.42, allocations: 17.41 MB / 0.9505 GB, free: 143 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00425/2.424, allocations: 1.353 MB / 0.9518 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00104/2.425, allocations: 68.92 kB / 0.9519 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003014/2.428, allocations: 277.9 kB / 0.9521 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009559/2.429, allocations: 258.1 kB / 0.9524 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003063/2.429, allocations: 98.02 kB / 0.9525 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.008285/2.437, allocations: 4.715 MB / 0.9571 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.4e-07/2.438, allocations: 0 / 0.9571 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01302/2.451, allocations: 2.054 MB / 0.9591 GB, free: 142.7 MB / 0.5606 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.03398/2.485, allocations: 18.11 MB / 0.9768 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01578/2.5, allocations: 10.93 MB / 0.9875 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.311e-05/2.5, allocations: 7.406 kB / 0.9875 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007498/2.508, allocations: 4.961 MB / 0.9923 GB, free: 124.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006621/2.515, allocations: 1.047 MB / 0.9933 GB, free: 123.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1928/2.707, allocations: 122.4 MB / 1.113 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008729/2.716, allocations: 5.728 MB / 1.118 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.008048/2.724, allocations: 2.713 MB / 1.121 GB, free: 12.66 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006978/2.731, allocations: 3.889 MB / 1.125 GB, free: 8.766 MB / 0.5919 GB Notification: Performance of SimCode: time 1.232e-06/2.731, allocations: 0 / 1.125 GB, free: 8.766 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.177/3.908, allocations: 165.6 MB / 1.287 GB, free: 52.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/3.908, allocations: 248.5 kB / 1.287 GB, free: 52.71 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.667/9.575, allocations: 0 / 1.287 GB, free: 52.71 MB / 0.5919 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