Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001494/0.001494, allocations: 116.9 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001446, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 54.41 kB / 306.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08684/0.08803, allocations: 50.53 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2347/0.3228, allocations: 110.7 MB / 467.7 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04368/0.3665, allocations: 20.84 MB / 488.6 MB, free: 7.695 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01555/0.3821, allocations: 0.5026 MB / 489.1 MB, free: 7.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009304/0.3915, allocations: 6.108 MB / 495.2 MB, free: 1.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006501/0.398, allocations: 3.169 MB / 498.4 MB, free: 13.89 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002816/0.4008, allocations: 1.584 MB / 499.9 MB, free: 12.3 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01378/0.4146, allocations: 14.05 MB / 0.5019 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008459/0.4231, allocations: 8.446 MB / 0.5102 GB, free: 5.711 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004675/0.4278, allocations: 3.871 MB / 0.514 GB, free: 1.828 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004864/0.4327, allocations: 5.516 MB / 0.5194 GB, free: 12.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008896/0.4336, allocations: 0.7422 MB / 0.5201 GB, free: 11.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002202/0.4358, allocations: 1.709 MB / 0.5218 GB, free: 9.844 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002828/0.4386, allocations: 4.388 MB / 0.526 GB, free: 5.445 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003483/0.4421, allocations: 4.962 MB / 0.5309 GB, free: 468 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2115/0.6536, allocations: 14.53 MB / 0.5451 GB, free: 23.66 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.6536, allocations: 0 / 0.5451 GB, free: 23.66 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.6536, allocations: 0.875 kB / 0.5451 GB, free: 23.66 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006998/0.6543, allocations: 1.422 kB / 0.5451 GB, free: 23.66 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.03867/0.693, allocations: 10.67 MB / 0.5555 GB, free: 19.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.6931, allocations: 10.19 kB / 0.5555 GB, free: 19.98 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004234/0.6973, allocations: 1.19 MB / 0.5567 GB, free: 19.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2465/0.9439, allocations: 24.29 MB / 0.5804 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01711/0.961, allocations: 9.119 MB / 0.5893 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.9613, allocations: 444.1 kB / 0.5897 GB, free: 10.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001661/0.9629, allocations: 0.6168 MB / 0.5903 GB, free: 10.13 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02215/0.9851, allocations: 16.74 MB / 0.6067 GB, free: 11.93 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002058/0.9853, allocations: 97.59 kB / 0.6068 GB, free: 11.87 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006813/0.986, allocations: 283.6 kB / 0.607 GB, free: 11.64 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003974/0.99, allocations: 2.86 MB / 0.6098 GB, free: 8.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02319/1.013, allocations: 13.26 MB / 0.6228 GB, free: 11.84 MB / 478.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.07771/1.091, allocations: 68.33 MB / 0.6895 GB, free: 6.344 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01808/1.109, allocations: 7.9 MB / 0.6972 GB, free: 14.32 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004759/1.114, allocations: 4.313 MB / 0.7014 GB, free: 10 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01756/1.131, allocations: 12.04 MB / 0.7132 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.222e-05/1.131, allocations: 71.36 kB / 0.7133 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=293): time 7.554e-06/1.131, allocations: 7.984 kB / 0.7133 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359): time 0.2957/1.427, allocations: 49.78 MB / 0.7619 GB, free: 252.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/1.427, allocations: 398.8 kB / 0.7623 GB, free: 252.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007319/1.435, allocations: 7.305 MB / 0.7694 GB, free: 246.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004214/1.435, allocations: 77.7 kB / 0.7695 GB, free: 246.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002111/1.437, allocations: 5.345 MB / 0.7747 GB, free: 241.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009052/1.438, allocations: 1.313 MB / 0.776 GB, free: 240.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001857/1.44, allocations: 1.692 MB / 0.7776 GB, free: 238.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 2.878e-05/1.44, allocations: 305.1 kB / 0.7779 GB, free: 238.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004023/1.444, allocations: 4.124 MB / 0.7819 GB, free: 234.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005286/1.449, allocations: 8.865 MB / 0.7906 GB, free: 223.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/1.459, allocations: 13.95 MB / 0.8042 GB, free: 207 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.489e-05/1.459, allocations: 44 kB / 0.8043 GB, free: 206.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.02545/1.485, allocations: 17.87 MB / 0.8217 GB, free: 189 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.223e-05/1.485, allocations: 76.19 kB / 0.8218 GB, free: 188.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.512e-05/1.485, allocations: 168 kB / 0.822 GB, free: 188.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/1.499, allocations: 6.066 MB / 0.8279 GB, free: 182.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004164/1.503, allocations: 1.821 MB / 0.8297 GB, free: 180.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.145/1.648, allocations: 32.89 MB / 0.8618 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008145/1.657, allocations: 0.5441 MB / 0.8623 GB, free: 147 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008472/1.657, allocations: 488 kB / 0.8628 GB, free: 146.5 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 (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.004748/1.662, allocations: 3.583 MB / 0.8663 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008838/1.663, allocations: 0.671 MB / 0.8669 GB, free: 142.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0198/1.683, allocations: 12.08 MB / 0.8787 GB, free: 130.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.171e-05/1.683, allocations: 45.67 kB / 0.8788 GB, free: 130.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.492e-05/1.683, allocations: 20 kB / 0.8788 GB, free: 130.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.403e-05/1.683, allocations: 15.94 kB / 0.8788 GB, free: 130 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0363/1.719, allocations: 26.01 MB / 0.9042 GB, free: 103.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.58e-05/1.719, allocations: 8.688 kB / 0.9042 GB, free: 103.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/1.721, allocations: 475.3 kB / 0.9047 GB, free: 103.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01394/1.735, allocations: 5.716 MB / 0.9103 GB, free: 97.36 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005439/1.736, allocations: 60 kB / 0.9103 GB, free: 97.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03119/1.767, allocations: 31.7 MB / 0.9413 GB, free: 65.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/1.767, allocations: 8 kB / 0.9413 GB, free: 65.18 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02509/1.792, allocations: 17.4 MB / 0.9583 GB, free: 47.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/1.794, allocations: 0.6954 MB / 0.9589 GB, free: 46.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001589/1.795, allocations: 63.98 kB / 0.959 GB, free: 46.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003528/1.799, allocations: 275.6 kB / 0.9593 GB, free: 46.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007612/1.8, allocations: 258.7 kB / 0.9595 GB, free: 46.29 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003041/1.8, allocations: 101.6 kB / 0.9596 GB, free: 46.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.007019/1.807, allocations: 4.698 MB / 0.9642 GB, free: 41.54 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/1.807, allocations: 0 / 0.9642 GB, free: 41.54 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00688/1.814, allocations: 2.042 MB / 0.9662 GB, free: 39.5 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 (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.0246/1.838, allocations: 18.11 MB / 0.9839 GB, free: 21.21 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.1544/1.993, allocations: 14.21 MB / 0.9978 GB, free: 250 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/1.993, allocations: 3.219 kB / 0.9978 GB, free: 250 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.006462/1.999, allocations: 4.952 MB / 1.003 GB, free: 248.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004914/2.004, allocations: 1.115 MB / 1.004 GB, free: 248.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1349/2.139, allocations: 122.2 MB / 1.123 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00613/2.145, allocations: 5.716 MB / 1.129 GB, free: 125.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005396/2.151, allocations: 2.721 MB / 1.131 GB, free: 122.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003451/2.154, allocations: 3.884 MB / 1.135 GB, free: 119 MB / 0.5606 GB Notification: Performance of SimCode: time 3.6e-07/2.154, allocations: 0 / 1.135 GB, free: 119 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.937/8.092, allocations: 169 MB / 1.3 GB, free: 211 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/8.092, allocations: 232.6 kB / 1.3 GB, free: 210.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.171/14.26, allocations: 8 kB / 1.3 GB, free: 210.7 MB / 0.5606 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches