Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Engine1a,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",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.001168/0.001168, allocations: 114.4 kB / 17.28 MB, free: 6.219 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.001076/0.001076, allocations: 193.3 kB / 18.19 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 48.3 kB / 280.2 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08652/0.08771, allocations: 46.63 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2674/0.3551, allocations: 103.4 MB / 430.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04637/0.4015, allocations: 19.85 MB / 450.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02662/0.4282, allocations: 474.8 kB / 450.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01091/0.4392, allocations: 5.647 MB / 456.2 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01033/0.4496, allocations: 3.145 MB / 459.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004096/0.4537, allocations: 1.502 MB / 460.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01458/0.4683, allocations: 11.98 MB / 472.9 MB, free: 3.762 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01153/0.4799, allocations: 8.043 MB / 480.9 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008495/0.4884, allocations: 3.711 MB / 484.6 MB, free: 7.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00928/0.4977, allocations: 5.317 MB / 489.9 MB, free: 2.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00302/0.5008, allocations: 0.7188 MB / 490.7 MB, free: 1.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005745/0.5066, allocations: 1.682 MB / 492.3 MB, free: 200 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006807/0.5134, allocations: 4.271 MB / 496.6 MB, free: 11.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008917/0.5224, allocations: 4.826 MB / 0.4897 GB, free: 7.062 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01505/0.5375, allocations: 14.17 MB / 0.5035 GB, free: 8.848 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.5375, allocations: 0 / 0.5035 GB, free: 8.848 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.5375, allocations: 0 / 0.5035 GB, free: 8.848 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003562/0.5379, allocations: 0 / 0.5035 GB, free: 8.848 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02344/0.5613, allocations: 10.4 MB / 0.5137 GB, free: 14.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.5614, allocations: 12.03 kB / 0.5137 GB, free: 14.34 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001653/0.563, allocations: 1.144 MB / 0.5148 GB, free: 13.19 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2741/0.8371, allocations: 24.25 MB / 0.5385 GB, free: 4.891 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3261/1.163, allocations: 10.54 MB / 0.5488 GB, free: 162 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004016/1.164, allocations: 429.4 kB / 0.5492 GB, free: 161.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002475/1.166, allocations: 0.5845 MB / 0.5498 GB, free: 161.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03132/1.197, allocations: 16.17 MB / 0.5656 GB, free: 154.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000383/1.198, allocations: 101.1 kB / 0.5657 GB, free: 154.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001205/1.199, allocations: 264.6 kB / 0.5659 GB, free: 154.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003684/1.203, allocations: 2.764 MB / 0.5686 GB, free: 153.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02236/1.225, allocations: 12.87 MB / 0.5812 GB, free: 141.1 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.06788/1.293, allocations: 66.44 MB / 0.6461 GB, free: 73.11 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01657/1.31, allocations: 7.583 MB / 0.6535 GB, free: 65.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004074/1.314, allocations: 4.194 MB / 0.6576 GB, free: 61.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0146/1.328, allocations: 11.73 MB / 0.669 GB, free: 49.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.747e-05/1.329, allocations: 72.44 kB / 0.6691 GB, free: 49.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 6.212e-06/1.329, allocations: 4 kB / 0.6691 GB, free: 49.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1474/1.476, allocations: 46.15 MB / 0.7142 GB, free: 3.086 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/1.476, allocations: 402 kB / 0.7145 GB, free: 2.605 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1863/1.662, allocations: 7.248 MB / 0.7216 GB, free: 150.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009377/1.663, allocations: 79.14 kB / 0.7217 GB, free: 150.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004842/1.668, allocations: 5.18 MB / 0.7268 GB, free: 147.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001581/1.67, allocations: 1.249 MB / 0.728 GB, free: 146.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002582/1.672, allocations: 1.648 MB / 0.7296 GB, free: 145.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.378e-05/1.672, allocations: 303.8 kB / 0.7299 GB, free: 145.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005599/1.678, allocations: 3.955 MB / 0.7337 GB, free: 143.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006779/1.685, allocations: 8.589 MB / 0.7421 GB, free: 136.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/1.696, allocations: 13.48 MB / 0.7553 GB, free: 126.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.772e-05/1.696, allocations: 42.91 kB / 0.7553 GB, free: 126.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03027/1.726, allocations: 17.17 MB / 0.7721 GB, free: 117 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.297e-05/1.726, allocations: 75.8 kB / 0.7722 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/1.727, allocations: 160 kB / 0.7723 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01587/1.742, allocations: 5.773 MB / 0.778 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004976/1.747, allocations: 1.759 MB / 0.7797 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03329/1.781, allocations: 31.66 MB / 0.8106 GB, free: 77.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007121/1.788, allocations: 0.5266 MB / 0.8111 GB, free: 77.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001114/1.789, allocations: 475.9 kB / 0.8116 GB, free: 76.59 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[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.005273/1.794, allocations: 3.472 MB / 0.815 GB, free: 73.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00135/1.796, allocations: 0.6562 MB / 0.8156 GB, free: 72.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02016/1.816, allocations: 11.47 MB / 0.8268 GB, free: 60.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-05/1.816, allocations: 36 kB / 0.8268 GB, free: 60.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.378e-05/1.816, allocations: 20 kB / 0.8269 GB, free: 60.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.101e-05/1.816, allocations: 19.88 kB / 0.8269 GB, free: 60.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03707/1.853, allocations: 24.89 MB / 0.8512 GB, free: 35.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.461e-05/1.853, allocations: 4.516 kB / 0.8512 GB, free: 35.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001786/1.855, allocations: 419.4 kB / 0.8516 GB, free: 35.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01464/1.87, allocations: 5.396 MB / 0.8569 GB, free: 29.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005027/1.87, allocations: 59.98 kB / 0.8569 GB, free: 29.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.193/2.063, allocations: 30.33 MB / 0.8865 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/2.063, allocations: 9 kB / 0.8865 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02517/2.088, allocations: 16.46 MB / 0.9026 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003038/2.091, allocations: 1.316 MB / 0.9039 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001613/2.093, allocations: 67.14 kB / 0.904 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003445/2.097, allocations: 259.5 kB / 0.9042 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008384/2.097, allocations: 250.6 kB / 0.9045 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002554/2.098, allocations: 86.25 kB / 0.9045 GB, free: 125.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006605/2.104, allocations: 4.687 MB / 0.9091 GB, free: 123.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/2.104, allocations: 3.906 kB / 0.9091 GB, free: 123.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008594/2.113, allocations: 1.971 MB / 0.911 GB, free: 123.5 MB / 446.1 MB 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.02659/2.139, allocations: 17.17 MB / 0.9278 GB, free: 114.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01926/2.159, allocations: 13.3 MB / 0.9408 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/2.159, allocations: 7.188 kB / 0.9408 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006858/2.166, allocations: 4.686 MB / 0.9454 GB, free: 96.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007388/2.173, allocations: 1.091 MB / 0.9464 GB, free: 95.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3478/2.521, allocations: 118.5 MB / 1.062 GB, free: 145.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006488/2.527, allocations: 5.546 MB / 1.068 GB, free: 144.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005968/2.533, allocations: 2.63 MB / 1.07 GB, free: 144.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003917/2.537, allocations: 3.718 MB / 1.074 GB, free: 141.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.503e-06/2.537, allocations: 0 / 1.074 GB, free: 141.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4528/2.99, allocations: 163 MB / 1.233 GB, free: 140.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/2.99, allocations: 242.6 kB / 1.233 GB, free: 140.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.373/9.364, allocations: 7.938 kB / 1.233 GB, free: 140.1 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches