Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_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.001069/0.001069, allocations: 109.8 kB / 17.06 MB, free: 5.82 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.001032/0.001032, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 39.94 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2666, allocations: 49.44 MB / 400.3 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01978/0.2865, allocations: 20.53 MB / 420.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01312/0.2996, allocations: 6.179 MB / 427 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004074/0.3037, allocations: 163.4 kB / 427.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01142/0.3152, allocations: 6.359 MB / 433.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009009/0.3243, allocations: 3.537 MB / 437 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004032/0.3283, allocations: 1.654 MB / 438.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01635/0.3447, allocations: 12.66 MB / 451.4 MB, free: 5.582 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00941/0.3542, allocations: 8.06 MB / 459.4 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00717/0.3614, allocations: 3.758 MB / 463.2 MB, free: 9.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007434/0.3688, allocations: 4.97 MB / 468.1 MB, free: 4.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002567/0.3714, allocations: 0.7461 MB / 468.9 MB, free: 3.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004563/0.376, allocations: 1.717 MB / 470.6 MB, free: 2.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005178/0.3812, allocations: 4.446 MB / 475.1 MB, free: 13.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007326/0.3886, allocations: 4.954 MB / 480 MB, free: 8.777 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01692/0.4055, allocations: 14.94 MB / 494.9 MB, free: 9.781 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.4056, allocations: 0 / 494.9 MB, free: 9.781 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4056, allocations: 0 / 494.9 MB, free: 9.781 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005168/0.4061, allocations: 0 / 494.9 MB, free: 9.781 MB / 414.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.03093/0.437, allocations: 10.95 MB / 0.494 GB, free: 14.72 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4371, allocations: 12.03 kB / 0.4941 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002912/0.44, allocations: 1.197 MB / 0.4952 GB, free: 13.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2943/0.7343, allocations: 24.34 MB / 0.519 GB, free: 5.129 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02525/0.7596, allocations: 9.997 MB / 0.5288 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005276/0.7602, allocations: 451.7 kB / 0.5292 GB, free: 10.6 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003021/0.7633, allocations: 0.6167 MB / 0.5298 GB, free: 9.984 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2523/1.016, allocations: 16.74 MB / 0.5461 GB, free: 121.6 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002807/1.016, allocations: 93.53 kB / 0.5462 GB, free: 121.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006301/1.017, allocations: 278.7 kB / 0.5465 GB, free: 121.4 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004057/1.021, allocations: 2.863 MB / 0.5493 GB, free: 120.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02301/1.044, allocations: 13.27 MB / 0.5622 GB, free: 114.9 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.0694/1.113, allocations: 68.15 MB / 0.6288 GB, free: 45.77 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01803/1.131, allocations: 7.909 MB / 0.6365 GB, free: 37.71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00423/1.135, allocations: 4.327 MB / 0.6407 GB, free: 33.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01722/1.153, allocations: 12.06 MB / 0.6525 GB, free: 21.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.586e-05/1.153, allocations: 68.55 kB / 0.6526 GB, free: 21.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=294): time 5.991e-06/1.153, allocations: 4 kB / 0.6526 GB, free: 21.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=360): time 0.1808/1.334, allocations: 50.33 MB / 0.7018 GB, free: 2.758 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002193/1.334, allocations: 402.2 kB / 0.7021 GB, free: 2.277 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01134/1.345, allocations: 7.325 MB / 0.7093 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000969/1.346, allocations: 85.7 kB / 0.7094 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.004252/1.35, allocations: 5.527 MB / 0.7148 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002086/1.353, allocations: 1.38 MB / 0.7161 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002621/1.355, allocations: 1.699 MB / 0.7178 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.355, allocations: 301.1 kB / 0.7181 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005818/1.361, allocations: 4.135 MB / 0.7221 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009883/1.371, allocations: 8.862 MB / 0.7308 GB, free: 2.594 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3231/1.694, allocations: 13.95 MB / 0.7444 GB, free: 158 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/1.694, allocations: 47.28 kB / 0.7444 GB, free: 158 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03375/1.728, allocations: 17.9 MB / 0.7619 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000101/1.728, allocations: 74.28 kB / 0.762 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001642/1.728, allocations: 171.8 kB / 0.7621 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01652/1.745, allocations: 6.064 MB / 0.7681 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005642/1.751, allocations: 1.829 MB / 0.7698 GB, free: 150.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03621/1.787, allocations: 32.91 MB / 0.802 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008077/1.795, allocations: 0.5399 MB / 0.8025 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009735/1.796, allocations: 491.6 kB / 0.803 GB, free: 118.4 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * 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],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.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 (968): * Single equations (assignments): 962 * 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 {(8,96,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005107/1.801, allocations: 3.583 MB / 0.8065 GB, free: 114.9 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001379/1.802, allocations: 0.7085 MB / 0.8072 GB, free: 114.6 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02168/1.824, allocations: 12.11 MB / 0.819 GB, free: 102.4 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.946e-05/1.824, allocations: 36 kB / 0.819 GB, free: 102.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.557e-05/1.824, allocations: 23.83 kB / 0.8191 GB, free: 102.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-05/1.824, allocations: 15.94 kB / 0.8191 GB, free: 102.3 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04148/1.866, allocations: 25.88 MB / 0.8443 GB, free: 76.15 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.669e-05/1.866, allocations: 6.469 kB / 0.8443 GB, free: 76.15 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002234/1.868, allocations: 467.3 kB / 0.8448 GB, free: 75.69 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01577/1.884, allocations: 5.699 MB / 0.8504 GB, free: 69.98 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007234/1.885, allocations: 75.5 kB / 0.8504 GB, free: 69.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03433/1.919, allocations: 31.72 MB / 0.8814 GB, free: 37.99 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/1.919, allocations: 4 kB / 0.8814 GB, free: 37.99 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02756/1.947, allocations: 17.45 MB / 0.8984 GB, free: 20.41 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004399/1.951, allocations: 1.4 MB / 0.8998 GB, free: 19 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001724/1.953, allocations: 64 kB / 0.8999 GB, free: 18.94 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003681/1.956, allocations: 275.6 kB / 0.9001 GB, free: 18.67 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000821/1.957, allocations: 262.1 kB / 0.9004 GB, free: 18.41 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002637/1.958, allocations: 92 kB / 0.9005 GB, free: 18.32 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006308/1.964, allocations: 4.71 MB / 0.9051 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.61e-07/1.964, allocations: 0 / 0.9051 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01021/1.974, allocations: 2.058 MB / 0.9071 GB, free: 11.6 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (232): * Single equations (assignments): 226 * 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 {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03169/2.006, allocations: 18.16 MB / 0.9248 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2675/2.273, allocations: 10.96 MB / 0.9355 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.265e-05/2.273, allocations: 11.73 kB / 0.9355 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008277/2.282, allocations: 4.98 MB / 0.9404 GB, free: 187.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006646/2.288, allocations: 1.114 MB / 0.9415 GB, free: 186.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1437/2.432, allocations: 95.19 MB / 1.034 GB, free: 97.29 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007003/2.439, allocations: 5.722 MB / 1.04 GB, free: 91.52 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005931/2.445, allocations: 2.721 MB / 1.043 GB, free: 88.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005252/2.45, allocations: 3.885 MB / 1.046 GB, free: 84.91 MB / 0.5294 GB Notification: Performance of SimCode: time 1.613e-06/2.45, allocations: 4 kB / 1.046 GB, free: 84.91 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5111/2.961, allocations: 164.7 MB / 1.207 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.56/46.52, allocations: 3.984 kB / 1.207 GB, free: 112.5 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches