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.001177/0.001177, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001739/0.00174, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 59.91 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2475, allocations: 50.56 MB / 408.8 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.0207/0.2682, allocations: 20.42 MB / 429.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01351/0.2818, allocations: 6.2 MB / 435.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003813/0.2856, allocations: 167.4 kB / 435.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0112/0.2969, allocations: 6.32 MB / 441.9 MB, free: 428 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008088/0.305, allocations: 3.4 MB / 445.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003598/0.3086, allocations: 1.658 MB / 447 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01624/0.3249, allocations: 12.95 MB / 459.9 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0105/0.3354, allocations: 8.049 MB / 468 MB, free: 6.234 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006422/0.3419, allocations: 3.751 MB / 471.7 MB, free: 2.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007401/0.3493, allocations: 4.955 MB / 476.7 MB, free: 13.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00261/0.3519, allocations: 0.7461 MB / 477.4 MB, free: 12.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005094/0.3571, allocations: 1.698 MB / 479.1 MB, free: 11.06 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006334/0.3634, allocations: 4.423 MB / 483.5 MB, free: 6.625 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008124/0.3716, allocations: 4.931 MB / 488.5 MB, free: 1.668 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01646/0.3881, allocations: 14.81 MB / 0.4915 GB, free: 2.809 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3881, allocations: 0 / 0.4915 GB, free: 2.809 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3881, allocations: 0 / 0.4915 GB, free: 2.809 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004727/0.3886, allocations: 0 / 0.4915 GB, free: 2.809 MB / 414.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.03051/0.4191, allocations: 10.66 MB / 0.5019 GB, free: 8.051 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4192, allocations: 8.031 kB / 0.5019 GB, free: 8.043 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003816/0.423, allocations: 1.197 MB / 0.5031 GB, free: 6.836 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2526/0.6757, allocations: 24.28 MB / 0.5268 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02007/0.6958, allocations: 9.31 MB / 0.5359 GB, free: 5.102 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004073/0.6963, allocations: 459.7 kB / 0.5363 GB, free: 4.652 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002178/0.6984, allocations: 0.6127 MB / 0.5369 GB, free: 4.039 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3967/1.095, allocations: 16.74 MB / 0.5533 GB, free: 111.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003343/1.095, allocations: 99.55 kB / 0.5534 GB, free: 111.6 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000948/1.096, allocations: 281.6 kB / 0.5536 GB, free: 111.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003562/1.1, allocations: 2.858 MB / 0.5564 GB, free: 110.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02346/1.123, allocations: 13.27 MB / 0.5694 GB, free: 99.76 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.07124/1.195, allocations: 68.01 MB / 0.6358 GB, free: 30.65 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01745/1.212, allocations: 7.899 MB / 0.6435 GB, free: 22.61 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004285/1.217, allocations: 4.314 MB / 0.6477 GB, free: 18.28 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01446/1.231, allocations: 12.04 MB / 0.6595 GB, free: 6.039 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/1.231, allocations: 68.5 kB / 0.6595 GB, free: 5.965 MB / 462.1 MB Notification: Performance of pre-optimization done (n=293): time 4.96e-06/1.231, allocations: 0 / 0.6595 GB, free: 5.965 MB / 462.1 MB Notification: Performance of matching and sorting (n=359): time 0.1767/1.408, allocations: 49.79 MB / 0.7082 GB, free: 4.195 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000181/1.408, allocations: 398.2 kB / 0.7085 GB, free: 3.719 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01316/1.421, allocations: 7.303 MB / 0.7157 GB, free: 12.45 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009556/1.422, allocations: 85.64 kB / 0.7158 GB, free: 12.36 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004321/1.427, allocations: 5.335 MB / 0.721 GB, free: 6.965 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001835/1.428, allocations: 1.318 MB / 0.7223 GB, free: 5.629 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003091/1.432, allocations: 1.698 MB / 0.7239 GB, free: 3.914 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 8.024e-05/1.432, allocations: 301.1 kB / 0.7242 GB, free: 3.617 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005553/1.437, allocations: 4.128 MB / 0.7282 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009926/1.447, allocations: 8.862 MB / 0.7369 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2445/1.692, allocations: 13.95 MB / 0.7505 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.295e-05/1.692, allocations: 46.78 kB / 0.7506 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03163/1.724, allocations: 17.86 MB / 0.768 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.45e-05/1.724, allocations: 78.39 kB / 0.7681 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001604/1.724, allocations: 173.9 kB / 0.7682 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01613/1.74, allocations: 6.043 MB / 0.7741 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006544/1.747, allocations: 1.829 MB / 0.7759 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0357/1.782, allocations: 32.87 MB / 0.808 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007193/1.79, allocations: 0.5405 MB / 0.8085 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001481/1.791, allocations: 488 kB / 0.809 GB, free: 127 MB / 0.5294 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.005952/1.797, allocations: 3.593 MB / 0.8125 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001362/1.798, allocations: 0.6696 MB / 0.8132 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02152/1.82, allocations: 12.08 MB / 0.825 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.495e-05/1.82, allocations: 43.61 kB / 0.825 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.848e-05/1.82, allocations: 20 kB / 0.825 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-05/1.82, allocations: 15.94 kB / 0.8251 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04108/1.861, allocations: 25.86 MB / 0.8503 GB, free: 84.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.146e-05/1.861, allocations: 4 kB / 0.8503 GB, free: 84.86 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002154/1.863, allocations: 463.3 kB / 0.8508 GB, free: 84.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01554/1.879, allocations: 5.701 MB / 0.8563 GB, free: 78.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007706/1.88, allocations: 68 kB / 0.8564 GB, free: 78.63 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03365/1.913, allocations: 31.69 MB / 0.8873 GB, free: 46.72 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/1.914, allocations: 8 kB / 0.8873 GB, free: 46.71 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02875/1.942, allocations: 17.39 MB / 0.9043 GB, free: 29.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/1.944, allocations: 0.7036 MB / 0.905 GB, free: 28.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001713/1.946, allocations: 64 kB / 0.9051 GB, free: 28.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00377/1.95, allocations: 275.6 kB / 0.9053 GB, free: 28.14 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001065/1.951, allocations: 258.7 kB / 0.9056 GB, free: 27.89 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003923/1.951, allocations: 92.97 kB / 0.9057 GB, free: 27.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006771/1.958, allocations: 4.71 MB / 0.9103 GB, free: 23.12 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/1.958, allocations: 0 / 0.9103 GB, free: 23.12 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007802/1.966, allocations: 2.035 MB / 0.9123 GB, free: 21.1 MB / 0.5294 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.02748/1.993, allocations: 18.11 MB / 0.9299 GB, free: 2.816 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2195/2.213, allocations: 10.93 MB / 0.9406 GB, free: 191.1 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.534e-05/2.213, allocations: 8.062 kB / 0.9406 GB, free: 191.1 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.008933/2.222, allocations: 4.949 MB / 0.9455 GB, free: 190.7 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006593/2.228, allocations: 1.112 MB / 0.9465 GB, free: 190.6 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.139/2.367, allocations: 94.76 MB / 1.039 GB, free: 107.9 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006489/2.374, allocations: 5.724 MB / 1.045 GB, free: 102.1 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.005667/2.38, allocations: 2.713 MB / 1.047 GB, free: 99.43 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00428/2.384, allocations: 3.885 MB / 1.051 GB, free: 95.54 MB / 0.5451 GB Notification: Performance of SimCode: time 1.784e-06/2.384, allocations: 0 / 1.051 GB, free: 95.54 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4337/2.818, allocations: 167 MB / 1.214 GB, free: 129.3 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.7/41.52, allocations: 10.44 kB / 1.214 GB, free: 129.3 MB / 0.5451 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