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.001277/0.001277, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001571/0.001571, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.386/1.386, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001345/0.001345, allocations: 59.91 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08256/0.08392, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1994/0.2834, allocations: 19.49 MB / 394.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01478/0.2982, allocations: 6.003 MB / 400.1 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00496/0.3032, allocations: 156.2 kB / 400.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01198/0.3153, allocations: 5.857 MB / 406.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01037/0.3257, allocations: 3.465 MB / 409.6 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004243/0.33, allocations: 1.573 MB / 411.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01743/0.3475, allocations: 11.37 MB / 422.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01177/0.3593, allocations: 7.666 MB / 430.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00713/0.3665, allocations: 3.599 MB / 433.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007569/0.3741, allocations: 4.779 MB / 438.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002674/0.3768, allocations: 0.7148 MB / 439.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005022/0.3818, allocations: 1.678 MB / 441 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005796/0.3877, allocations: 4.283 MB / 445.3 MB, free: 9.047 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008606/0.3963, allocations: 4.799 MB / 450.1 MB, free: 4.223 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01817/0.4145, allocations: 14.49 MB / 464.6 MB, free: 5.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.4146, allocations: 0 / 464.6 MB, free: 5.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.4146, allocations: 0 / 464.6 MB, free: 5.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005103/0.4151, allocations: 7.938 kB / 464.6 MB, free: 5.672 MB / 382.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.03298/0.4481, allocations: 10.65 MB / 475.2 MB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.029e-05/0.4482, allocations: 12.03 kB / 475.2 MB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003822/0.452, allocations: 1.144 MB / 476.4 MB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3007/0.7527, allocations: 24.3 MB / 0.4889 GB, free: 1.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02494/0.7777, allocations: 10.77 MB / 0.4995 GB, free: 6.551 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004943/0.7783, allocations: 436.7 kB / 0.4999 GB, free: 6.125 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002292/0.7806, allocations: 0.5777 MB / 0.5004 GB, free: 5.547 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03253/0.8131, allocations: 16.18 MB / 0.5162 GB, free: 4.316 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004202/0.8136, allocations: 99.23 kB / 0.5163 GB, free: 4.219 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001836/0.8155, allocations: 263.8 kB / 0.5166 GB, free: 3.961 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004735/0.8202, allocations: 2.772 MB / 0.5193 GB, free: 1.188 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02844/0.8487, allocations: 12.87 MB / 0.5319 GB, free: 4.301 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.4151/1.264, allocations: 66.22 MB / 0.5965 GB, free: 99.95 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01945/1.283, allocations: 7.589 MB / 0.6039 GB, free: 97.52 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005348/1.289, allocations: 4.202 MB / 0.608 GB, free: 95.73 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0199/1.309, allocations: 11.73 MB / 0.6195 GB, free: 89.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/1.309, allocations: 63.69 kB / 0.6196 GB, free: 89.45 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 7.735e-06/1.309, allocations: 0 / 0.6196 GB, free: 89.45 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1641/1.473, allocations: 46.63 MB / 0.6651 GB, free: 49.36 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/1.473, allocations: 398.1 kB / 0.6655 GB, free: 48.88 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01011/1.483, allocations: 7.261 MB / 0.6726 GB, free: 41.75 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007741/1.484, allocations: 77.7 kB / 0.6726 GB, free: 41.66 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003087/1.487, allocations: 5.356 MB / 0.6779 GB, free: 36.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001492/1.489, allocations: 1.298 MB / 0.6791 GB, free: 35.62 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002662/1.491, allocations: 1.659 MB / 0.6808 GB, free: 33.95 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.424e-05/1.491, allocations: 301.1 kB / 0.681 GB, free: 33.65 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004742/1.496, allocations: 3.959 MB / 0.6849 GB, free: 29.68 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006965/1.503, allocations: 8.579 MB / 0.6933 GB, free: 18.82 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01254/1.516, allocations: 13.49 MB / 0.7065 GB, free: 3.059 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001094/1.516, allocations: 44 kB / 0.7065 GB, free: 3.016 MB / 478.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03733/1.553, allocations: 17.2 MB / 0.7233 GB, free: 1.754 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/1.553, allocations: 75.98 kB / 0.7234 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001925/1.554, allocations: 160 kB / 0.7235 GB, free: 1.523 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01863/1.572, allocations: 5.764 MB / 0.7291 GB, free: 11.75 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006217/1.578, allocations: 1.751 MB / 0.7309 GB, free: 9.992 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2354/1.814, allocations: 31.67 MB / 0.7618 GB, free: 149.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007512/1.821, allocations: 0.5256 MB / 0.7623 GB, free: 149.7 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001634/1.823, allocations: 477.5 kB / 0.7627 GB, free: 149.7 MB / 0.4982 GB 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.006254/1.829, allocations: 3.48 MB / 0.7661 GB, free: 148.4 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001731/1.831, allocations: 0.691 MB / 0.7668 GB, free: 148.4 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02309/1.854, allocations: 11.47 MB / 0.778 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-05/1.854, allocations: 37.59 kB / 0.7781 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.779e-05/1.854, allocations: 20.39 kB / 0.7781 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.852e-05/1.854, allocations: 14.91 kB / 0.7781 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05509/1.909, allocations: 24.77 MB / 0.8023 GB, free: 128.1 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.882e-05/1.91, allocations: 7.781 kB / 0.8023 GB, free: 128.1 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002012/1.912, allocations: 427.3 kB / 0.8027 GB, free: 127.7 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.016/1.928, allocations: 5.374 MB / 0.8079 GB, free: 122.4 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007793/1.928, allocations: 63.94 kB / 0.808 GB, free: 122.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03598/1.964, allocations: 30.35 MB / 0.8376 GB, free: 91.84 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/1.965, allocations: 11.92 kB / 0.8377 GB, free: 91.83 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02798/1.992, allocations: 16.5 MB / 0.8538 GB, free: 75.46 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004246/1.997, allocations: 1.352 MB / 0.8551 GB, free: 74.09 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002424/1.999, allocations: 60 kB / 0.8551 GB, free: 74.04 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004654/2.004, allocations: 263.6 kB / 0.8554 GB, free: 73.78 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001449/2.005, allocations: 242.5 kB / 0.8556 GB, free: 73.54 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006413/2.006, allocations: 92 kB / 0.8557 GB, free: 73.45 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.009025/2.015, allocations: 4.684 MB / 0.8603 GB, free: 68.8 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.032e-06/2.015, allocations: 0 / 0.8603 GB, free: 68.8 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01012/2.025, allocations: 1.979 MB / 0.8622 GB, free: 66.84 MB / 0.4982 GB 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.02921/2.055, allocations: 17.2 MB / 0.879 GB, free: 49.51 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0152/2.07, allocations: 10.51 MB / 0.8893 GB, free: 38.98 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/2.07, allocations: 0 / 0.8893 GB, free: 38.98 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007363/2.077, allocations: 4.705 MB / 0.8939 GB, free: 34.23 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007166/2.084, allocations: 1.087 MB / 0.8949 GB, free: 33.18 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3464/2.431, allocations: 92.15 MB / 0.9849 GB, free: 143.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007285/2.438, allocations: 5.553 MB / 0.9904 GB, free: 138 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005933/2.444, allocations: 2.625 MB / 0.9929 GB, free: 135.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004647/2.449, allocations: 3.717 MB / 0.9966 GB, free: 131.6 MB / 0.5138 GB Notification: Performance of SimCode: time 1.462e-06/2.449, allocations: 0 / 0.9966 GB, free: 131.6 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4007/2.85, allocations: 158.2 MB / 1.151 GB, free: 157.8 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.4/43.25, allocations: 10.52 kB / 1.151 GB, free: 157.8 MB / 0.5138 GB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches