Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_3_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.001704/0.001704, allocations: 102.9 kB / 17.58 MB, free: 5.414 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.001914/0.001913, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.147/2.147, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002554/0.002554, allocations: 56.61 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1608, allocations: 46.63 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.03804/0.1989, allocations: 20.59 MB / 348 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02569/0.2247, allocations: 6.215 MB / 354.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008409/0.2332, allocations: 163.4 kB / 354.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02108/0.2544, allocations: 6.355 MB / 360.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01523/0.2697, allocations: 3.451 MB / 364.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005381/0.2751, allocations: 1.673 MB / 365.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02848/0.3036, allocations: 11.66 MB / 377.5 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3725/0.6762, allocations: 8.078 MB / 385.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0136/0.6898, allocations: 3.768 MB / 389.3 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01286/0.7027, allocations: 4.977 MB / 394.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005/0.7078, allocations: 0.7475 MB / 395.1 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0089/0.7167, allocations: 1.709 MB / 396.8 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0117/0.7285, allocations: 4.373 MB / 401.2 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01832/0.7469, allocations: 4.989 MB / 406.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02645/0.7734, allocations: 14.63 MB / 420.8 MB, free: 2.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.378e-05/0.7735, allocations: 0 / 420.8 MB, free: 2.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.7735, allocations: 0 / 420.8 MB, free: 2.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0007832/0.7743, allocations: 0 / 420.8 MB, free: 2.754 MB / 318.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.05597/0.8303, allocations: 10.76 MB / 431.5 MB, free: 8.102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.281e-05/0.8304, allocations: 16.02 kB / 431.5 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006605/0.837, allocations: 1.187 MB / 432.7 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4691/1.306, allocations: 24.29 MB / 457 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04008/1.346, allocations: 10.73 MB / 467.8 MB, free: 4.207 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008051/1.347, allocations: 448.6 kB / 468.2 MB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00431/1.352, allocations: 0.6127 MB / 468.8 MB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0605/1.412, allocations: 16.75 MB / 485.6 MB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000591/1.413, allocations: 97.23 kB / 485.7 MB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002771/1.416, allocations: 280 kB / 485.9 MB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007931/1.424, allocations: 2.859 MB / 488.8 MB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04881/1.472, allocations: 13.27 MB / 0.4903 GB, free: 1.609 MB / 398.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.5149/1.987, allocations: 67.79 MB / 0.5565 GB, free: 115.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03255/2.02, allocations: 7.166 MB / 0.5635 GB, free: 114.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008481/2.028, allocations: 4.156 MB / 0.5675 GB, free: 113.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0353/2.064, allocations: 12.06 MB / 0.5793 GB, free: 107.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.654e-05/2.064, allocations: 69.53 kB / 0.5794 GB, free: 107.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 9.317e-06/2.064, allocations: 0 / 0.5794 GB, free: 107.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=365): time 0.2387/2.303, allocations: 40.92 MB / 0.6193 GB, free: 79.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000194/2.303, allocations: 402.1 kB / 0.6197 GB, free: 78.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02412/2.327, allocations: 7.458 MB / 0.627 GB, free: 71.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001411/2.329, allocations: 81.7 kB / 0.6271 GB, free: 71.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006897/2.336, allocations: 5.384 MB / 0.6324 GB, free: 65.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003434/2.339, allocations: 1.335 MB / 0.6337 GB, free: 64.38 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005416/2.345, allocations: 1.721 MB / 0.6353 GB, free: 62.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/2.345, allocations: 301.1 kB / 0.6356 GB, free: 62.35 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009753/2.354, allocations: 3.698 MB / 0.6392 GB, free: 58.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01456/2.369, allocations: 8.508 MB / 0.6475 GB, free: 47.85 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02401/2.393, allocations: 13.19 MB / 0.6604 GB, free: 32.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002649/2.394, allocations: 48 kB / 0.6605 GB, free: 32.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=1124) (initialization): time 0.0516/2.445, allocations: 15.41 MB / 0.6755 GB, free: 17.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001783/2.446, allocations: 76 kB / 0.6756 GB, free: 16.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002929/2.446, allocations: 171.9 kB / 0.6758 GB, free: 16.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01931/2.465, allocations: 4.049 MB / 0.6797 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01052/2.476, allocations: 1.836 MB / 0.6815 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3888/2.865, allocations: 27.5 MB / 0.7084 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01553/2.88, allocations: 0.4936 MB / 0.7088 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003148/2.883, allocations: 496.8 kB / 0.7093 GB, free: 148 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (988): * Single equations (assignments): 982 * 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 {(5,101,72.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.01484/2.898, allocations: 3.612 MB / 0.7128 GB, free: 147.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004205/2.902, allocations: 0.6829 MB / 0.7135 GB, free: 147.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03943/2.942, allocations: 9.433 MB / 0.7227 GB, free: 146.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001247/2.942, allocations: 38.78 kB / 0.7228 GB, free: 146.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.689e-05/2.942, allocations: 21.94 kB / 0.7228 GB, free: 146.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001028/2.942, allocations: 19.5 kB / 0.7228 GB, free: 146.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06598/3.008, allocations: 20.34 MB / 0.7427 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.131e-05/3.008, allocations: 15.12 kB / 0.7427 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00386/3.012, allocations: 448.1 kB / 0.7431 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01905/3.031, allocations: 3.825 MB / 0.7468 GB, free: 138 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001333/3.033, allocations: 75.58 kB / 0.7469 GB, free: 138 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05446/3.087, allocations: 26.81 MB / 0.7731 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.496e-05/3.087, allocations: 12.03 kB / 0.7731 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03869/3.126, allocations: 14.2 MB / 0.787 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006085/3.132, allocations: 1.274 MB / 0.7882 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003367/3.136, allocations: 67.94 kB / 0.7883 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00844/3.144, allocations: 223.7 kB / 0.7885 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002178/3.146, allocations: 261.6 kB / 0.7887 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006215/3.147, allocations: 101.1 kB / 0.7888 GB, free: 102.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01492/3.162, allocations: 4.809 MB / 0.7935 GB, free: 97.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.62e-07/3.162, allocations: 0 / 0.7935 GB, free: 97.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01869/3.181, allocations: 2.015 MB / 0.7955 GB, free: 95.54 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * 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 {(9,92,69.1%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03934/3.22, allocations: 14.92 MB / 0.8101 GB, free: 80.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.03544/3.256, allocations: 13.16 MB / 0.8229 GB, free: 67.33 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.132e-05/3.256, allocations: 0 / 0.8229 GB, free: 67.33 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0127/3.268, allocations: 4.368 MB / 0.8272 GB, free: 62.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01726/3.286, allocations: 1.129 MB / 0.8283 GB, free: 61.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5898/3.876, allocations: 114.3 MB / 0.9399 GB, free: 118.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01527/3.891, allocations: 5.763 MB / 0.9455 GB, free: 116.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.01462/3.906, allocations: 2.764 MB / 0.9482 GB, free: 114.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0103/3.916, allocations: 3.955 MB / 0.9521 GB, free: 110.5 MB / 462.1 MB Notification: Performance of SimCode: time 2.124e-06/3.916, allocations: 0 / 0.9521 GB, free: 110.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7084/4.624, allocations: 165.7 MB / 1.114 GB, free: 113.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.72/31.34, allocations: 15.92 kB / 1.114 GB, free: 113.1 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches