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.001484/0.001484, allocations: 122.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001752/0.001752, allocations: 198 kB / 18.73 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.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.84 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2501, allocations: 50.54 MB / 408.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02106/0.2712, allocations: 23.3 MB / 432.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0146/0.2858, allocations: 7.074 MB / 439.2 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004356/0.2902, allocations: 183.4 kB / 439.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0147/0.305, allocations: 7.901 MB / 447.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009767/0.3148, allocations: 3.653 MB / 450.9 MB, free: 7.219 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005369/0.3202, allocations: 2.005 MB / 452.9 MB, free: 5.211 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01866/0.3389, allocations: 13.57 MB / 466.5 MB, free: 7.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01481/0.3537, allocations: 10.44 MB / 476.9 MB, free: 13.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007788/0.3616, allocations: 4.258 MB / 481.2 MB, free: 8.805 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00863/0.3703, allocations: 5.703 MB / 486.9 MB, free: 3.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003608/0.3739, allocations: 1 MB / 487.9 MB, free: 2.086 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006078/0.38, allocations: 2.15 MB / 490 MB, free: 15.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007328/0.3874, allocations: 5.07 MB / 495.1 MB, free: 10.85 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01086/0.3983, allocations: 5.69 MB / 0.4891 GB, free: 5.133 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02232/0.4206, allocations: 17.97 MB / 0.5066 GB, free: 3.102 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.4207, allocations: 0 / 0.5066 GB, free: 3.102 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4207, allocations: 0 / 0.5066 GB, free: 3.102 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006591/0.4214, allocations: 0 / 0.5066 GB, free: 3.102 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.03963/0.461, allocations: 12.13 MB / 0.5185 GB, free: 6.852 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.321e-05/0.4611, allocations: 12.03 kB / 0.5185 GB, free: 6.84 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005277/0.4664, allocations: 1.337 MB / 0.5198 GB, free: 5.492 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7309/1.197, allocations: 24.57 MB / 0.5438 GB, free: 115.3 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02726/1.225, allocations: 10.23 MB / 0.5537 GB, free: 112.3 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005199/1.225, allocations: 0.5253 MB / 0.5543 GB, free: 112.1 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002747/1.228, allocations: 0.7224 MB / 0.555 GB, free: 111.9 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03554/1.264, allocations: 19.12 MB / 0.5736 GB, free: 93.59 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004389/1.264, allocations: 99.3 kB / 0.5737 GB, free: 93.49 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002091/1.266, allocations: 322.2 kB / 0.574 GB, free: 93.22 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003624/1.27, allocations: 2.813 MB / 0.5768 GB, free: 90.43 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02926/1.299, allocations: 15.48 MB / 0.5919 GB, free: 74.96 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.08445/1.384, allocations: 72.25 MB / 0.6625 GB, free: 1.035 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0225/1.406, allocations: 8.026 MB / 0.6703 GB, free: 8.867 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006134/1.412, allocations: 4.249 MB / 0.6744 GB, free: 4.598 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02612/1.438, allocations: 14.26 MB / 0.6884 GB, free: 5.926 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.468e-05/1.439, allocations: 72.52 kB / 0.6884 GB, free: 5.844 MB / 494.1 MB Notification: Performance of pre-optimization done (n=309): time 7.223e-06/1.439, allocations: 0 / 0.6884 GB, free: 5.844 MB / 494.1 MB Notification: Performance of matching and sorting (n=416): time 0.1869/1.625, allocations: 51.14 MB / 0.7384 GB, free: 2.742 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001961/1.626, allocations: 402.7 kB / 0.7388 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2341/1.86, allocations: 7.592 MB / 0.7462 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001058/1.861, allocations: 92.95 kB / 0.7463 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003764/1.865, allocations: 5.981 MB / 0.7521 GB, free: 176.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001787/1.866, allocations: 1.576 MB / 0.7536 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00278/1.869, allocations: 1.847 MB / 0.7555 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.93e-05/1.869, allocations: 313.1 kB / 0.7557 GB, free: 174.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005392/1.875, allocations: 4.456 MB / 0.7601 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007595/1.882, allocations: 9.414 MB / 0.7693 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01426/1.897, allocations: 14.92 MB / 0.7839 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002305/1.897, allocations: 48 kB / 0.7839 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.03471/1.932, allocations: 18.14 MB / 0.8016 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/1.932, allocations: 76 kB / 0.8017 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002171/1.932, allocations: 168.8 kB / 0.8019 GB, free: 138 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01508/1.947, allocations: 5.198 MB / 0.8069 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006319/1.953, allocations: 1.953 MB / 0.8088 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03838/1.992, allocations: 30.22 MB / 0.8384 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009006/2.001, allocations: 0.5385 MB / 0.8389 GB, free: 100 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001842/2.003, allocations: 0.5064 MB / 0.8394 GB, free: 99.51 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.006819/2.01, allocations: 4.08 MB / 0.8434 GB, free: 95.42 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001631/2.011, allocations: 0.7489 MB / 0.8441 GB, free: 94.66 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02111/2.032, allocations: 11.91 MB / 0.8557 GB, free: 82.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.715e-05/2.033, allocations: 44 kB / 0.8558 GB, free: 82.66 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.473e-05/2.033, allocations: 27.28 kB / 0.8558 GB, free: 82.63 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.49e-05/2.033, allocations: 23.92 kB / 0.8558 GB, free: 82.61 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04776/2.08, allocations: 25.36 MB / 0.8806 GB, free: 57.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.932e-05/2.081, allocations: 15.88 kB / 0.8806 GB, free: 57.12 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002701/2.083, allocations: 0.5624 MB / 0.8812 GB, free: 56.55 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01414/2.097, allocations: 4.857 MB / 0.8859 GB, free: 51.69 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008385/2.098, allocations: 83.42 kB / 0.886 GB, free: 51.61 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03237/2.131, allocations: 26.91 MB / 0.9123 GB, free: 24.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/2.131, allocations: 15.94 kB / 0.9123 GB, free: 24.55 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02862/2.159, allocations: 17.87 MB / 0.9297 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00224/2.162, allocations: 0.7654 MB / 0.9305 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001558/2.163, allocations: 79.98 kB / 0.9305 GB, free: 5.629 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003719/2.167, allocations: 271.7 kB / 0.9308 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009419/2.168, allocations: 291 kB / 0.9311 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003016/2.168, allocations: 116 kB / 0.9312 GB, free: 4.965 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006563/2.175, allocations: 4.884 MB / 0.936 GB, free: 92 kB / 0.5294 GB Notification: Performance of sort global known variables: time 3.3e-07/2.175, allocations: 0 / 0.936 GB, free: 92 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01057/2.185, allocations: 2.203 MB / 0.9381 GB, free: 13.89 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.3011/2.487, allocations: 18.63 MB / 0.9563 GB, free: 174 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01733/2.504, allocations: 11.28 MB / 0.9673 GB, free: 169.6 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.639e-05/2.504, allocations: 0 / 0.9673 GB, free: 169.6 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.008744/2.513, allocations: 4.794 MB / 0.972 GB, free: 167.5 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009892/2.523, allocations: 1.176 MB / 0.9731 GB, free: 167 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1657/2.688, allocations: 99.89 MB / 1.071 GB, free: 67.19 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01001/2.698, allocations: 6.38 MB / 1.077 GB, free: 60.78 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.007021/2.705, allocations: 2.925 MB / 1.08 GB, free: 57.84 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006314/2.712, allocations: 4.365 MB / 1.084 GB, free: 53.48 MB / 0.5451 GB Notification: Performance of SimCode: time 1.302e-06/2.712, allocations: 0 / 1.084 GB, free: 53.48 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4985/3.21, allocations: 178.4 MB / 1.258 GB, free: 99.22 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 51.2/54.41, allocations: 11.36 kB / 1.258 GB, free: 99.22 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.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