Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001641/0.001641, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 51.91 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2922, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02728/0.3195, allocations: 23.31 MB / 432.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01925/0.3388, allocations: 7.078 MB / 439.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005886/0.3448, allocations: 183.4 kB / 439.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0156/0.3605, allocations: 7.894 MB / 447.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01092/0.3715, allocations: 3.54 MB / 450.8 MB, free: 7.371 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005523/0.377, allocations: 2.016 MB / 452.8 MB, free: 5.352 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02189/0.399, allocations: 13.56 MB / 466.4 MB, free: 7.766 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01812/0.4171, allocations: 10.44 MB / 476.8 MB, free: 13.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009954/0.4271, allocations: 4.25 MB / 481.1 MB, free: 8.969 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01122/0.4384, allocations: 5.691 MB / 486.7 MB, free: 3.262 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003726/0.4422, allocations: 1 MB / 487.7 MB, free: 2.262 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006968/0.4492, allocations: 2.139 MB / 489.9 MB, free: 124 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008179/0.4574, allocations: 4.988 MB / 494.9 MB, free: 11.12 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01336/0.4709, allocations: 5.694 MB / 0.4888 GB, free: 5.398 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0279/0.4988, allocations: 17.96 MB / 0.5064 GB, free: 3.375 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.075e-05/0.4989, allocations: 3.938 kB / 0.5064 GB, free: 3.371 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.4989, allocations: 0 / 0.5064 GB, free: 3.371 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007058/0.4996, allocations: 0 / 0.5064 GB, free: 3.371 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.04324/0.5429, allocations: 12.13 MB / 0.5182 GB, free: 7.125 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.056e-05/0.543, allocations: 12.03 kB / 0.5182 GB, free: 7.113 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005746/0.5487, allocations: 1.333 MB / 0.5195 GB, free: 5.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7179/1.267, allocations: 24.57 MB / 0.5435 GB, free: 115.1 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02316/1.29, allocations: 10.22 MB / 0.5535 GB, free: 112.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005219/1.29, allocations: 0.5237 MB / 0.554 GB, free: 112 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004225/1.295, allocations: 0.7256 MB / 0.5547 GB, free: 111.8 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03923/1.334, allocations: 19.13 MB / 0.5734 GB, free: 93.84 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005244/1.335, allocations: 95.3 kB / 0.5735 GB, free: 93.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002705/1.337, allocations: 322.6 kB / 0.5738 GB, free: 93.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003729/1.341, allocations: 2.817 MB / 0.5766 GB, free: 90.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03054/1.372, allocations: 15.47 MB / 0.5917 GB, free: 75.21 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.08958/1.461, allocations: 72.25 MB / 0.6622 GB, free: 1.297 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02325/1.485, allocations: 8.026 MB / 0.6701 GB, free: 9.129 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006842/1.491, allocations: 4.245 MB / 0.6742 GB, free: 4.863 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03145/1.523, allocations: 14.27 MB / 0.6881 GB, free: 6.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.726e-05/1.523, allocations: 68.52 kB / 0.6882 GB, free: 6.102 MB / 494.1 MB Notification: Performance of pre-optimization done (n=309): time 9.547e-06/1.523, allocations: 0 / 0.6882 GB, free: 6.102 MB / 494.1 MB Notification: Performance of matching and sorting (n=416): time 0.2019/1.725, allocations: 51.14 MB / 0.7382 GB, free: 3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000277/1.725, allocations: 410.7 kB / 0.7385 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3095/2.035, allocations: 7.59 MB / 0.746 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001005/2.036, allocations: 90.8 kB / 0.746 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005703/2.042, allocations: 5.979 MB / 0.7519 GB, free: 176.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002355/2.044, allocations: 1.577 MB / 0.7534 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005071/2.049, allocations: 1.852 MB / 0.7552 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.089e-05/2.049, allocations: 307.2 kB / 0.7555 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007192/2.056, allocations: 4.463 MB / 0.7599 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01091/2.067, allocations: 9.419 MB / 0.7691 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01624/2.084, allocations: 14.91 MB / 0.7836 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002511/2.084, allocations: 49.69 kB / 0.7837 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.04126/2.125, allocations: 18.14 MB / 0.8014 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003307/2.126, allocations: 76 kB / 0.8015 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003777/2.126, allocations: 168.3 kB / 0.8016 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01575/2.142, allocations: 5.195 MB / 0.8067 GB, free: 133.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006597/2.148, allocations: 1.957 MB / 0.8086 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04707/2.196, allocations: 30.22 MB / 0.8381 GB, free: 100.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008917/2.205, allocations: 0.5462 MB / 0.8387 GB, free: 100.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002216/2.207, allocations: 0.5077 MB / 0.8392 GB, free: 99.76 MB / 0.5294 GB 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.00857/2.215, allocations: 4.078 MB / 0.8431 GB, free: 95.67 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002237/2.218, allocations: 0.7373 MB / 0.8439 GB, free: 94.93 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0262/2.244, allocations: 11.93 MB / 0.8555 GB, free: 82.95 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.668e-05/2.244, allocations: 43.94 kB / 0.8556 GB, free: 82.91 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.548e-05/2.244, allocations: 27.94 kB / 0.8556 GB, free: 82.88 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.734e-05/2.244, allocations: 19.92 kB / 0.8556 GB, free: 82.86 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05537/2.3, allocations: 25.36 MB / 0.8804 GB, free: 57.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.787e-05/2.3, allocations: 11.94 kB / 0.8804 GB, free: 57.38 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002896/2.303, allocations: 0.5622 MB / 0.8809 GB, free: 56.82 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0155/2.318, allocations: 4.857 MB / 0.8857 GB, free: 51.95 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00113/2.319, allocations: 76 kB / 0.8857 GB, free: 51.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03963/2.359, allocations: 26.91 MB / 0.912 GB, free: 24.83 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.647e-05/2.359, allocations: 15.88 kB / 0.912 GB, free: 24.81 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03433/2.393, allocations: 17.88 MB / 0.9295 GB, free: 6.75 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003614/2.397, allocations: 0.7615 MB / 0.9302 GB, free: 5.965 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003161/2.4, allocations: 76 kB / 0.9303 GB, free: 5.891 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005599/2.406, allocations: 271.6 kB / 0.9306 GB, free: 5.625 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001982/2.408, allocations: 295.1 kB / 0.9308 GB, free: 5.336 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001071/2.409, allocations: 119.2 kB / 0.931 GB, free: 5.223 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01043/2.42, allocations: 4.888 MB / 0.9357 GB, free: 352 kB / 0.5294 GB Notification: Performance of sort global known variables: time 4.91e-07/2.42, allocations: 0 / 0.9357 GB, free: 352 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01368/2.433, allocations: 2.2 MB / 0.9379 GB, free: 14.14 MB / 0.5451 GB 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.2983/2.732, allocations: 18.62 MB / 0.9561 GB, free: 174.7 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.0175/2.749, allocations: 11.28 MB / 0.9671 GB, free: 170.3 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.886e-05/2.749, allocations: 6.438 kB / 0.9671 GB, free: 170.3 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.007449/2.757, allocations: 4.789 MB / 0.9718 GB, free: 168.2 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008556/2.765, allocations: 1.161 MB / 0.9729 GB, free: 167.7 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1818/2.947, allocations: 99.9 MB / 1.07 GB, free: 68.02 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01347/2.961, allocations: 6.388 MB / 1.077 GB, free: 61.6 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.008283/2.969, allocations: 2.924 MB / 1.08 GB, free: 58.67 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008276/2.977, allocations: 4.356 MB / 1.084 GB, free: 54.31 MB / 0.5451 GB Notification: Performance of SimCode: time 1.263e-06/2.977, allocations: 4 kB / 1.084 GB, free: 54.31 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5488/3.526, allocations: 178.5 MB / 1.258 GB, free: 99.02 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 51.02/54.54, allocations: 7.375 kB / 1.258 GB, free: 99.02 MB / 0.5607 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches