Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",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.001425/0.001425, allocations: 108.5 kB / 17.05 MB, free: 6.09 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.001358/0.001358, allocations: 192 kB / 17.99 MB, free: 5.184 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.375/1.375, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 47.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2459, allocations: 49.43 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02066/0.2666, allocations: 19.43 MB / 419.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01276/0.2794, allocations: 5.969 MB / 425.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003546/0.283, allocations: 155.4 kB / 425.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01097/0.294, allocations: 5.852 MB / 431.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008566/0.3026, allocations: 3.34 MB / 435 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003354/0.306, allocations: 1.56 MB / 436.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01743/0.3234, allocations: 12.38 MB / 448.9 MB, free: 7.984 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01025/0.3337, allocations: 7.647 MB / 456.6 MB, free: 256 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006464/0.3402, allocations: 3.552 MB / 460.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00733/0.3476, allocations: 4.744 MB / 464.9 MB, free: 7.926 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001999/0.3496, allocations: 0.7109 MB / 465.6 MB, free: 7.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004098/0.3537, allocations: 1.674 MB / 467.3 MB, free: 5.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004794/0.3586, allocations: 4.177 MB / 471.4 MB, free: 1.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007194/0.3658, allocations: 4.772 MB / 476.2 MB, free: 12.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01831/0.3841, allocations: 14.4 MB / 490.6 MB, free: 14.1 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.3842, allocations: 4 kB / 490.6 MB, free: 14.09 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3842, allocations: 0 / 490.6 MB, free: 14.09 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004796/0.3847, allocations: 4 kB / 490.6 MB, free: 14.09 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03275/0.4174, allocations: 10.58 MB / 0.4895 GB, free: 3.406 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/0.4175, allocations: 8.031 kB / 0.4895 GB, free: 3.398 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003833/0.4213, allocations: 1.148 MB / 0.4906 GB, free: 2.238 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3097/0.731, allocations: 24.3 MB / 0.5143 GB, free: 9.906 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02253/0.7536, allocations: 9.804 MB / 0.5239 GB, free: 12 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004575/0.7541, allocations: 431.2 kB / 0.5243 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002061/0.7562, allocations: 0.5855 MB / 0.5249 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3978/1.154, allocations: 16.16 MB / 0.5407 GB, free: 120.1 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003844/1.154, allocations: 101.6 kB / 0.5407 GB, free: 120.1 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/1.155, allocations: 262.5 kB / 0.541 GB, free: 120.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004233/1.16, allocations: 2.773 MB / 0.5437 GB, free: 119.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02291/1.183, allocations: 12.86 MB / 0.5563 GB, free: 114.3 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.06363/1.246, allocations: 66.24 MB / 0.6209 GB, free: 48.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01696/1.263, allocations: 7.589 MB / 0.6284 GB, free: 41.02 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003988/1.267, allocations: 4.217 MB / 0.6325 GB, free: 36.79 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01384/1.281, allocations: 11.69 MB / 0.6439 GB, free: 25.04 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/1.281, allocations: 75.48 kB / 0.644 GB, free: 24.96 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 4.949e-06/1.281, allocations: 0 / 0.644 GB, free: 24.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.169/1.45, allocations: 47.8 MB / 0.6906 GB, free: 9.598 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002367/1.451, allocations: 402 kB / 0.691 GB, free: 9.117 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01126/1.462, allocations: 7.171 MB / 0.698 GB, free: 2.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007917/1.463, allocations: 77.7 kB / 0.6981 GB, free: 1.988 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004425/1.467, allocations: 5.352 MB / 0.7033 GB, free: 12.88 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001841/1.469, allocations: 1.302 MB / 0.7046 GB, free: 11.56 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00275/1.472, allocations: 1.651 MB / 0.7062 GB, free: 9.898 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001218/1.472, allocations: 309.1 kB / 0.7065 GB, free: 9.594 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006118/1.478, allocations: 3.967 MB / 0.7104 GB, free: 5.617 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01032/1.488, allocations: 8.583 MB / 0.7188 GB, free: 10.75 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01823/1.507, allocations: 13.49 MB / 0.7319 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001318/1.507, allocations: 48 kB / 0.732 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.2632/1.77, allocations: 17.2 MB / 0.7488 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.894e-05/1.77, allocations: 73.69 kB / 0.7488 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001805/1.77, allocations: 159.2 kB / 0.749 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01664/1.787, allocations: 5.761 MB / 0.7546 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005425/1.792, allocations: 1.752 MB / 0.7563 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03647/1.829, allocations: 31.68 MB / 0.7873 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006963/1.836, allocations: 0.526 MB / 0.7878 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001418/1.837, allocations: 467.6 kB / 0.7882 GB, free: 158.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (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 (934): * Single equations (assignments): 928 * 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,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005101/1.842, allocations: 3.466 MB / 0.7916 GB, free: 155.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00135/1.844, allocations: 0.6843 MB / 0.7923 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02161/1.865, allocations: 11.48 MB / 0.8035 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-05/1.866, allocations: 32.25 kB / 0.8035 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.849e-05/1.866, allocations: 20 kB / 0.8035 GB, free: 143.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.137e-05/1.866, allocations: 19.94 kB / 0.8036 GB, free: 143.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0408/1.906, allocations: 24.74 MB / 0.8277 GB, free: 118.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.859e-05/1.906, allocations: 8 kB / 0.8277 GB, free: 118.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/1.908, allocations: 419.3 kB / 0.8281 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01533/1.924, allocations: 5.376 MB / 0.8334 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006771/1.924, allocations: 60 kB / 0.8334 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.033/1.957, allocations: 30.36 MB / 0.8631 GB, free: 82.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/1.957, allocations: 7.938 kB / 0.8631 GB, free: 82.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02628/1.984, allocations: 16.52 MB / 0.8792 GB, free: 65.86 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/1.985, allocations: 0.7209 MB / 0.8799 GB, free: 65.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001497/1.987, allocations: 63.98 kB / 0.88 GB, free: 65.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003693/1.991, allocations: 259.6 kB / 0.8802 GB, free: 64.83 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000926/1.992, allocations: 238.6 kB / 0.8805 GB, free: 64.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002801/1.992, allocations: 91.98 kB / 0.8806 GB, free: 64.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00642/1.998, allocations: 4.624 MB / 0.8851 GB, free: 59.91 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.91e-07/1.998, allocations: 0 / 0.8851 GB, free: 59.91 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008096/2.006, allocations: 1.969 MB / 0.887 GB, free: 57.95 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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,87,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.02669/2.033, allocations: 17.22 MB / 0.9038 GB, free: 40.54 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01485/2.048, allocations: 10.52 MB / 0.9141 GB, free: 29.98 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/2.048, allocations: 8 kB / 0.9141 GB, free: 29.97 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007272/2.055, allocations: 4.705 MB / 0.9187 GB, free: 25.21 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006459/2.062, allocations: 1.079 MB / 0.9197 GB, free: 24.14 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3654/2.427, allocations: 91.64 MB / 1.009 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009105/2.436, allocations: 5.524 MB / 1.015 GB, free: 118 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006736/2.443, allocations: 2.631 MB / 1.017 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005274/2.448, allocations: 3.741 MB / 1.021 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.733e-06/2.448, allocations: 0 / 1.021 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.414/2.863, allocations: 157.5 MB / 1.175 GB, free: 172.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.63/44.49, allocations: 11.59 kB / 1.175 GB, free: 172.1 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches