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.001824/0.001825, allocations: 108 kB / 16.92 MB, free: 6.332 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.002384/0.002384, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.34/2.34, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 45.67 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.1715, allocations: 49.44 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.3614/0.533, allocations: 20.52 MB / 370.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02515/0.5582, allocations: 6.186 MB / 376.9 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0069/0.5652, allocations: 165.8 kB / 377 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01425/0.5796, allocations: 6.357 MB / 383.4 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01236/0.592, allocations: 3.43 MB / 386.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004888/0.5969, allocations: 1.668 MB / 388.5 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01992/0.6168, allocations: 12.66 MB / 401.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01383/0.6307, allocations: 8.068 MB / 409.2 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01244/0.6432, allocations: 3.736 MB / 412.9 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01238/0.6557, allocations: 4.956 MB / 417.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005316/0.6611, allocations: 0.7461 MB / 418.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008374/0.6695, allocations: 1.718 MB / 420.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008211/0.6777, allocations: 4.342 MB / 424.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01724/0.695, allocations: 4.951 MB / 429.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03526/0.7303, allocations: 14.55 MB / 444.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.053e-05/0.7304, allocations: 0 / 444.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.7304, allocations: 0 / 444.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0007428/0.7312, allocations: 0 / 444.2 MB, free: 4.828 MB / 350.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.04606/0.7773, allocations: 10.7 MB / 454.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.894e-05/0.7774, allocations: 8.031 kB / 454.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008957/0.7863, allocations: 1.199 MB / 456.1 MB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4703/1.257, allocations: 24.29 MB / 480.4 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03402/1.291, allocations: 9.755 MB / 490.1 MB, free: 7.016 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007369/1.292, allocations: 446.6 kB / 490.6 MB, free: 6.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003681/1.295, allocations: 0.6199 MB / 491.2 MB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04337/1.339, allocations: 16.75 MB / 0.496 GB, free: 4.41 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007879/1.34, allocations: 95.11 kB / 0.4961 GB, free: 4.316 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003282/1.343, allocations: 276.8 kB / 0.4964 GB, free: 4.094 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005663/1.349, allocations: 2.858 MB / 0.4992 GB, free: 1.242 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0464/1.395, allocations: 13.27 MB / 0.5121 GB, free: 3.961 MB / 430.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.7439/2.139, allocations: 68.36 MB / 0.5789 GB, free: 95.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03569/2.175, allocations: 7.919 MB / 0.5866 GB, free: 92.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009034/2.184, allocations: 4.321 MB / 0.5909 GB, free: 90.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03614/2.22, allocations: 12.05 MB / 0.6026 GB, free: 83.24 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.218e-05/2.22, allocations: 73.23 kB / 0.6027 GB, free: 83.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=294): time 9.388e-06/2.22, allocations: 0 / 0.6027 GB, free: 83.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=360): time 0.2557/2.476, allocations: 49.89 MB / 0.6514 GB, free: 37.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00032/2.476, allocations: 406.2 kB / 0.6518 GB, free: 36.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01992/2.496, allocations: 7.312 MB / 0.6589 GB, free: 29.45 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00163/2.498, allocations: 77.7 kB / 0.659 GB, free: 29.37 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006165/2.504, allocations: 5.355 MB / 0.6642 GB, free: 24.01 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002898/2.507, allocations: 1.316 MB / 0.6655 GB, free: 22.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004554/2.512, allocations: 1.698 MB / 0.6672 GB, free: 20.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/2.512, allocations: 305.1 kB / 0.6675 GB, free: 20.69 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005532/2.518, allocations: 4.124 MB / 0.6715 GB, free: 16.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007717/2.525, allocations: 8.866 MB / 0.6802 GB, free: 5.359 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02131/2.547, allocations: 13.94 MB / 0.6938 GB, free: 5.098 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001959/2.547, allocations: 56.69 kB / 0.6938 GB, free: 5.043 MB / 462.1 MB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.3387/2.886, allocations: 17.87 MB / 0.7113 GB, free: 139.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002559/2.886, allocations: 75.28 kB / 0.7114 GB, free: 139.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004413/2.886, allocations: 163.7 kB / 0.7115 GB, free: 139.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.031/2.917, allocations: 6.082 MB / 0.7174 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008871/2.926, allocations: 1.832 MB / 0.7192 GB, free: 138.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08012/3.007, allocations: 32.91 MB / 0.7514 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01343/3.02, allocations: 0.5395 MB / 0.7519 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002367/3.023, allocations: 484 kB / 0.7524 GB, free: 116.2 MB / 462.1 MB 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.009241/3.032, allocations: 3.591 MB / 0.7559 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002226/3.034, allocations: 0.6725 MB / 0.7565 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02614/3.06, allocations: 12.1 MB / 0.7683 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-05/3.06, allocations: 40 kB / 0.7684 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.668e-05/3.06, allocations: 16 kB / 0.7684 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.856e-05/3.06, allocations: 19.94 kB / 0.7684 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05451/3.115, allocations: 26.03 MB / 0.7938 GB, free: 73.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.466e-05/3.115, allocations: 8 kB / 0.7938 GB, free: 73.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002544/3.118, allocations: 463.3 kB / 0.7943 GB, free: 73.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.029/3.147, allocations: 5.72 MB / 0.7999 GB, free: 67.73 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001338/3.148, allocations: 67.94 kB / 0.7999 GB, free: 67.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07532/3.223, allocations: 31.7 MB / 0.8309 GB, free: 35.57 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.209e-05/3.224, allocations: 15.92 kB / 0.8309 GB, free: 35.55 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05223/3.276, allocations: 17.41 MB / 0.8479 GB, free: 17.97 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008059/3.284, allocations: 1.358 MB / 0.8492 GB, free: 16.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003673/3.288, allocations: 67.98 kB / 0.8493 GB, free: 16.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009682/3.297, allocations: 283.7 kB / 0.8496 GB, free: 16.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002646/3.3, allocations: 246.8 kB / 0.8498 GB, free: 16.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001166/3.301, allocations: 88 kB / 0.8499 GB, free: 15.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01825/3.32, allocations: 4.722 MB / 0.8545 GB, free: 11.24 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.42e-07/3.32, allocations: 3.938 kB / 0.8545 GB, free: 11.24 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.02036/3.34, allocations: 2.049 MB / 0.8565 GB, free: 9.191 MB / 462.1 MB 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.4196/3.76, allocations: 18.12 MB / 0.8742 GB, free: 148.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.04787/3.808, allocations: 14.26 MB / 0.8881 GB, free: 145.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.897e-05/3.808, allocations: 0 / 0.8881 GB, free: 145.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01756/3.825, allocations: 4.969 MB / 0.893 GB, free: 143.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01767/3.843, allocations: 1.123 MB / 0.8941 GB, free: 143 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3208/4.164, allocations: 119 MB / 1.01 GB, free: 25.31 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01592/4.18, allocations: 5.734 MB / 1.016 GB, free: 19.54 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.015/4.195, allocations: 2.713 MB / 1.019 GB, free: 16.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01139/4.206, allocations: 3.893 MB / 1.022 GB, free: 12.92 MB / 478.1 MB Notification: Performance of SimCode: time 1.633e-06/4.206, allocations: 0 / 1.022 GB, free: 12.92 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9924/5.199, allocations: 169.6 MB / 1.188 GB, free: 53.54 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.22/31.42, allocations: 8.547 kB / 1.188 GB, free: 53.53 MB / 494.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 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.csv","/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