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.001149/0.001149, allocations: 103.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001196/0.001196, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 65.52 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0884/0.08969, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1853/0.275, allocations: 23.31 MB / 380.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01518/0.2902, allocations: 7.065 MB / 388 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00488/0.2951, allocations: 180.2 kB / 388.1 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01343/0.3086, allocations: 7.916 MB / 396 MB, free: 284 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01097/0.3196, allocations: 3.551 MB / 399.6 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005073/0.3248, allocations: 2 MB / 401.6 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01777/0.3426, allocations: 13.56 MB / 415.2 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01784/0.3604, allocations: 10.46 MB / 425.6 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009153/0.3697, allocations: 4.246 MB / 429.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008235/0.3779, allocations: 5.688 MB / 435.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003093/0.3811, allocations: 1 MB / 436.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006411/0.3875, allocations: 2.146 MB / 438.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006971/0.3945, allocations: 4.981 MB / 443.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01075/0.4053, allocations: 5.694 MB / 449.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02358/0.4289, allocations: 17.58 MB / 467 MB, free: 13.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.009e-05/0.429, allocations: 0 / 467 MB, free: 13.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.429, allocations: 0 / 467 MB, free: 13.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000601/0.4296, allocations: 0 / 467 MB, free: 13.69 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: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.03775/0.4674, allocations: 11.85 MB / 478.8 MB, free: 1.734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.826e-05/0.4675, allocations: 12.03 kB / 478.8 MB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004816/0.4723, allocations: 1.329 MB / 480.1 MB, free: 392 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2958/0.7681, allocations: 24.52 MB / 0.4928 GB, free: 7.824 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02307/0.7912, allocations: 9.978 MB / 0.5026 GB, free: 13.75 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004814/0.7917, allocations: 0.5217 MB / 0.5031 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002461/0.7942, allocations: 0.7298 MB / 0.5038 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03883/0.833, allocations: 19.12 MB / 0.5225 GB, free: 8.336 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000507/0.8336, allocations: 103.1 kB / 0.5226 GB, free: 8.234 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00206/0.8357, allocations: 323.8 kB / 0.5229 GB, free: 7.918 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004415/0.8401, allocations: 2.821 MB / 0.5256 GB, free: 5.094 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4169/1.257, allocations: 15.48 MB / 0.5407 GB, free: 129.3 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.08403/1.341, allocations: 72.5 MB / 0.6116 GB, free: 70.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02/1.361, allocations: 8.021 MB / 0.6194 GB, free: 62.53 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004617/1.366, allocations: 4.253 MB / 0.6235 GB, free: 58.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01625/1.382, allocations: 14.25 MB / 0.6375 GB, free: 43.53 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/1.382, allocations: 68.52 kB / 0.6375 GB, free: 43.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=309): time 5.32e-06/1.382, allocations: 0 / 0.6375 GB, free: 43.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=416): time 0.1647/1.547, allocations: 50.64 MB / 0.687 GB, free: 8.672 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002322/1.547, allocations: 406.7 kB / 0.6874 GB, free: 8.188 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.014/1.561, allocations: 7.587 MB / 0.6948 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009412/1.562, allocations: 85.7 kB / 0.6948 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004607/1.567, allocations: 5.798 MB / 0.7005 GB, free: 10.64 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002404/1.569, allocations: 1.499 MB / 0.702 GB, free: 9.125 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003442/1.573, allocations: 1.837 MB / 0.7038 GB, free: 7.273 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.431e-05/1.573, allocations: 301.1 kB / 0.7041 GB, free: 6.977 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006906/1.58, allocations: 4.457 MB / 0.7084 GB, free: 2.512 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1976/1.777, allocations: 9.418 MB / 0.7176 GB, free: 146.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01594/1.793, allocations: 14.91 MB / 0.7322 GB, free: 136.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002065/1.794, allocations: 48.91 kB / 0.7322 GB, free: 136.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.03705/1.831, allocations: 18.11 MB / 0.7499 GB, free: 130 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000126/1.831, allocations: 79.56 kB / 0.75 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001874/1.831, allocations: 169.6 kB / 0.7501 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01541/1.846, allocations: 5.216 MB / 0.7552 GB, free: 128.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006141/1.853, allocations: 1.952 MB / 0.7571 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03668/1.889, allocations: 30.23 MB / 0.7867 GB, free: 103 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00807/1.897, allocations: 0.5437 MB / 0.7872 GB, free: 102.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001435/1.899, allocations: 0.5025 MB / 0.7877 GB, free: 102 MB / 478.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.006051/1.905, allocations: 4.087 MB / 0.7917 GB, free: 98.02 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00153/1.906, allocations: 0.7104 MB / 0.7924 GB, free: 97.69 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02232/1.929, allocations: 11.91 MB / 0.804 GB, free: 85.72 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.996e-05/1.929, allocations: 44 kB / 0.804 GB, free: 85.68 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.659e-05/1.929, allocations: 24 kB / 0.8041 GB, free: 85.66 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-05/1.929, allocations: 15.94 kB / 0.8041 GB, free: 85.64 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04478/1.974, allocations: 25.71 MB / 0.8292 GB, free: 59.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-05/1.974, allocations: 8 kB / 0.8292 GB, free: 59.85 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002743/1.977, allocations: 0.5733 MB / 0.8297 GB, free: 59.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01436/1.991, allocations: 4.841 MB / 0.8345 GB, free: 54.43 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006697/1.992, allocations: 79.98 kB / 0.8346 GB, free: 54.35 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0328/2.024, allocations: 26.92 MB / 0.8608 GB, free: 27.45 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/2.025, allocations: 19.92 kB / 0.8609 GB, free: 27.43 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02839/2.053, allocations: 17.79 MB / 0.8782 GB, free: 9.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002266/2.055, allocations: 0.7258 MB / 0.8789 GB, free: 8.844 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001588/2.057, allocations: 87.92 kB / 0.879 GB, free: 8.758 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003855/2.061, allocations: 267.7 kB / 0.8793 GB, free: 8.496 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001246/2.062, allocations: 295.1 kB / 0.8796 GB, free: 8.207 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003028/2.062, allocations: 108 kB / 0.8797 GB, free: 8.102 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.1916/2.254, allocations: 4.881 MB / 0.8844 GB, free: 139.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.31e-07/2.254, allocations: 0 / 0.8844 GB, free: 139.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009702/2.264, allocations: 2.215 MB / 0.8866 GB, free: 139.5 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.03333/2.297, allocations: 18.56 MB / 0.9047 GB, free: 134.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02677/2.324, allocations: 15.89 MB / 0.9202 GB, free: 129.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/2.324, allocations: 3.688 kB / 0.9202 GB, free: 129.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006964/2.331, allocations: 4.818 MB / 0.9249 GB, free: 127.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007208/2.338, allocations: 1.173 MB / 0.9261 GB, free: 126.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.164/2.502, allocations: 126.3 MB / 1.049 GB, free: 8.137 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01388/2.516, allocations: 6.381 MB / 1.056 GB, free: 1.719 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.207/2.723, allocations: 2.918 MB / 1.059 GB, free: 151.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007192/2.73, allocations: 4.351 MB / 1.063 GB, free: 151.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.383e-06/2.73, allocations: 0.7812 kB / 1.063 GB, free: 151.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3912/3.121, allocations: 183.5 MB / 1.242 GB, free: 124.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.51/17.63, allocations: 1.406 kB / 1.242 GB, free: 124.8 MB / 494.1 MB (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.0.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