Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",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.002187/0.002188, allocations: 108.6 kB / 16.92 MB, free: 5.781 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.002819/0.002819, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.05/2.05, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001417, allocations: 48.42 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1548, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.36/0.5149, allocations: 23.39 MB / 373.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02175/0.5367, allocations: 7.066 MB / 380.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0104/0.5472, allocations: 181 kB / 380.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02729/0.5746, allocations: 7.946 MB / 388.7 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02058/0.5953, allocations: 3.579 MB / 392.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01007/0.6055, allocations: 2.013 MB / 394.3 MB, free: 2.438 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.03343/0.6389, allocations: 13.26 MB / 407.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02739/0.6664, allocations: 10.47 MB / 418.1 MB, free: 224 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01536/0.6819, allocations: 4.252 MB / 422.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01645/0.6984, allocations: 5.699 MB / 428 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005855/0.7043, allocations: 1 MB / 429 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01216/0.7165, allocations: 2.158 MB / 431.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01289/0.7295, allocations: 5.012 MB / 436.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02306/0.7526, allocations: 5.718 MB / 441.9 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04163/0.7943, allocations: 17.64 MB / 459.5 MB, free: 7.062 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.424e-05/0.7944, allocations: 0 / 459.5 MB, free: 7.062 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.7944, allocations: 0 / 459.5 MB, free: 7.062 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0009294/0.7954, allocations: 0 / 459.5 MB, free: 7.062 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.07106/0.8665, allocations: 11.88 MB / 471.4 MB, free: 11.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.543e-05/0.8666, allocations: 12.03 kB / 471.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009546/0.8761, allocations: 1.337 MB / 472.8 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4528/1.329, allocations: 24.52 MB / 497.3 MB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03919/1.368, allocations: 10.62 MB / 0.496 GB, free: 6.453 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00108/1.369, allocations: 0.5179 MB / 0.4965 GB, free: 5.934 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005046/1.374, allocations: 0.7376 MB / 0.4972 GB, free: 5.195 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07021/1.445, allocations: 19.11 MB / 0.5159 GB, free: 1.039 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000906/1.446, allocations: 95.11 kB / 0.516 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004791/1.451, allocations: 327.8 kB / 0.5163 GB, free: 0.625 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008045/1.459, allocations: 2.817 MB / 0.519 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7428/2.201, allocations: 15.47 MB / 0.5341 GB, free: 134.7 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.1481/2.35, allocations: 72.52 MB / 0.605 GB, free: 83.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03356/2.383, allocations: 8.047 MB / 0.6128 GB, free: 76.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007874/2.391, allocations: 4.254 MB / 0.617 GB, free: 71.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0313/2.423, allocations: 14.18 MB / 0.6308 GB, free: 57.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.698e-05/2.423, allocations: 68.56 kB / 0.6309 GB, free: 57.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=310): time 8.967e-06/2.423, allocations: 0 / 0.6309 GB, free: 57.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=416): time 0.2645/2.687, allocations: 48.55 MB / 0.6783 GB, free: 8.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/2.687, allocations: 406.6 kB / 0.6787 GB, free: 8.016 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01573/2.703, allocations: 7.588 MB / 0.6861 GB, free: 436 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001334/2.705, allocations: 95.42 kB / 0.6862 GB, free: 336 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.007823/2.712, allocations: 5.797 MB / 0.6919 GB, free: 10.52 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003399/2.716, allocations: 1.504 MB / 0.6933 GB, free: 9.027 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00522/2.721, allocations: 1.837 MB / 0.6951 GB, free: 7.18 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/2.721, allocations: 301.1 kB / 0.6954 GB, free: 6.883 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01185/2.733, allocations: 4.452 MB / 0.6998 GB, free: 2.426 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3867/3.12, allocations: 9.402 MB / 0.7089 GB, free: 137.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03409/3.154, allocations: 14.9 MB / 0.7235 GB, free: 126.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006245/3.155, allocations: 48.09 kB / 0.7235 GB, free: 126.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.06865/3.223, allocations: 18.09 MB / 0.7412 GB, free: 120.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003076/3.224, allocations: 80.52 kB / 0.7413 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004666/3.224, allocations: 169 kB / 0.7414 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02727/3.252, allocations: 5.212 MB / 0.7465 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01199/3.264, allocations: 1.955 MB / 0.7484 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06814/3.332, allocations: 30.23 MB / 0.778 GB, free: 92.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01972/3.352, allocations: 0.5407 MB / 0.7785 GB, free: 91.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003753/3.356, allocations: 0.5039 MB / 0.779 GB, free: 91.25 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 774 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1047): * Single equations (assignments): 1042 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01291/3.368, allocations: 4.077 MB / 0.783 GB, free: 87.27 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00258/3.371, allocations: 0.7112 MB / 0.7837 GB, free: 86.94 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04027/3.411, allocations: 11.9 MB / 0.7953 GB, free: 74.99 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.089e-05/3.412, allocations: 47.94 kB / 0.7953 GB, free: 74.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.88e-05/3.412, allocations: 24 kB / 0.7953 GB, free: 74.92 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001155/3.412, allocations: 15.94 kB / 0.7954 GB, free: 74.91 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08465/3.496, allocations: 25.68 MB / 0.8204 GB, free: 49.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-05/3.497, allocations: 4 kB / 0.8204 GB, free: 49.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004455/3.501, allocations: 0.5772 MB / 0.821 GB, free: 48.56 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03591/3.537, allocations: 4.839 MB / 0.8257 GB, free: 43.72 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001323/3.538, allocations: 79.44 kB / 0.8258 GB, free: 43.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05909/3.597, allocations: 26.93 MB / 0.8521 GB, free: 16.74 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.63e-05/3.597, allocations: 15.94 kB / 0.8521 GB, free: 16.72 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3998/3.997, allocations: 17.76 MB / 0.8695 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007445/4.005, allocations: 1.447 MB / 0.8709 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004159/4.009, allocations: 82.17 kB / 0.871 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008353/4.017, allocations: 266 kB / 0.8712 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002549/4.02, allocations: 290.9 kB / 0.8715 GB, free: 144.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007547/4.021, allocations: 118.8 kB / 0.8716 GB, free: 144.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01559/4.036, allocations: 4.891 MB / 0.8764 GB, free: 144.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.32e-07/4.037, allocations: 0 / 0.8764 GB, free: 144.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01871/4.055, allocations: 2.227 MB / 0.8786 GB, free: 144.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (287): * Single equations (assignments): 283 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,113,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.06226/4.118, allocations: 18.54 MB / 0.8967 GB, free: 138 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.04702/4.165, allocations: 15.85 MB / 0.9121 GB, free: 133.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-05/4.165, allocations: 4 kB / 0.9121 GB, free: 133.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01317/4.178, allocations: 4.815 MB / 0.9168 GB, free: 129.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0166/4.195, allocations: 1.179 MB / 0.918 GB, free: 128.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3393/4.534, allocations: 126.4 MB / 1.041 GB, free: 10.11 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02606/4.56, allocations: 6.37 MB / 1.048 GB, free: 3.703 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01835/4.578, allocations: 2.931 MB / 1.05 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3555/4.934, allocations: 4.31 MB / 1.055 GB, free: 156.9 MB / 494.1 MB Notification: Performance of SimCode: time 2.264e-06/4.934, allocations: 1.719 kB / 1.055 GB, free: 156.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.02/5.954, allocations: 183.7 MB / 1.234 GB, free: 132.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.43/29.38, allocations: 2.516 kB / 1.234 GB, free: 132.1 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_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_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches