Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Engine1a,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_1_0-beta_om_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 trunk/package.mo): time 0.001384/0.001384, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001512/0.001512, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.41/1.41, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00214/0.00214, allocations: 71.88 kB / 358.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2727, allocations: 50.54 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02215/0.2949, allocations: 19.38 MB / 428.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01364/0.3085, allocations: 5.977 MB / 434.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003712/0.3123, allocations: 155.4 kB / 434.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0111/0.3235, allocations: 5.829 MB / 440.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008925/0.3324, allocations: 3.295 MB / 443.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00396/0.3364, allocations: 1.572 MB / 445.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01909/0.3555, allocations: 12.66 MB / 458 MB, free: 364 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009928/0.3655, allocations: 7.65 MB / 465.6 MB, free: 8.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006627/0.3722, allocations: 3.556 MB / 469.2 MB, free: 5.051 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00767/0.3799, allocations: 4.725 MB / 473.9 MB, free: 320 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002782/0.3827, allocations: 0.7149 MB / 474.6 MB, free: 15.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004665/0.3874, allocations: 1.662 MB / 476.3 MB, free: 13.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005554/0.3929, allocations: 4.162 MB / 480.4 MB, free: 9.762 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008465/0.4014, allocations: 4.741 MB / 485.2 MB, free: 4.996 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01938/0.4209, allocations: 14.34 MB / 499.5 MB, free: 6.602 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.4209, allocations: 0 / 499.5 MB, free: 6.602 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4209, allocations: 3.938 kB / 499.5 MB, free: 6.598 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004632/0.4214, allocations: 0 / 499.5 MB, free: 6.598 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.03251/0.4539, allocations: 10.56 MB / 0.4981 GB, free: 11.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.454, allocations: 8.031 kB / 0.4981 GB, free: 11.92 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003948/0.4579, allocations: 1.148 MB / 0.4993 GB, free: 10.76 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3099/0.7678, allocations: 24.3 MB / 0.523 GB, free: 2.426 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02295/0.7908, allocations: 9.161 MB / 0.5319 GB, free: 9.172 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005056/0.7914, allocations: 427.2 kB / 0.5323 GB, free: 8.754 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002591/0.794, allocations: 0.5894 MB / 0.5329 GB, free: 8.164 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4277/1.222, allocations: 16.17 MB / 0.5487 GB, free: 113.4 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002929/1.222, allocations: 100.5 kB / 0.5488 GB, free: 113.4 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001161/1.223, allocations: 263.5 kB / 0.549 GB, free: 113.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00365/1.227, allocations: 2.769 MB / 0.5517 GB, free: 112.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02284/1.25, allocations: 12.86 MB / 0.5643 GB, free: 105.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.06724/1.317, allocations: 66.24 MB / 0.629 GB, free: 38.16 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0175/1.335, allocations: 7.59 MB / 0.6364 GB, free: 30.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004159/1.339, allocations: 4.202 MB / 0.6405 GB, free: 26.21 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01541/1.354, allocations: 11.7 MB / 0.6519 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.501e-05/1.354, allocations: 72.5 kB / 0.652 GB, free: 14.37 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 6.042e-06/1.354, allocations: 0 / 0.652 GB, free: 14.37 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.174/1.528, allocations: 47.78 MB / 0.6987 GB, free: 15.02 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002537/1.529, allocations: 410 kB / 0.6991 GB, free: 14.53 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01187/1.54, allocations: 7.163 MB / 0.7061 GB, free: 7.492 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009389/1.541, allocations: 77.7 kB / 0.7061 GB, free: 7.41 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.005238/1.547, allocations: 5.349 MB / 0.7114 GB, free: 2.258 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002465/1.549, allocations: 1.294 MB / 0.7126 GB, free: 0.9531 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003685/1.553, allocations: 1.659 MB / 0.7142 GB, free: 15.28 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001437/1.553, allocations: 305.1 kB / 0.7145 GB, free: 14.98 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006602/1.56, allocations: 3.959 MB / 0.7184 GB, free: 11.01 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01056/1.57, allocations: 8.595 MB / 0.7268 GB, free: 136 kB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01809/1.588, allocations: 13.48 MB / 0.74 GB, free: 392 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001319/1.589, allocations: 48 kB / 0.74 GB, free: 344 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.2339/1.822, allocations: 17.2 MB / 0.7568 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.309e-05/1.823, allocations: 72.53 kB / 0.7569 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001691/1.823, allocations: 164.1 kB / 0.757 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01654/1.839, allocations: 5.769 MB / 0.7627 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005471/1.845, allocations: 1.751 MB / 0.7644 GB, free: 172 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03538/1.88, allocations: 31.67 MB / 0.7953 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00689/1.887, allocations: 0.5234 MB / 0.7958 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001177/1.888, allocations: 468 kB / 0.7963 GB, free: 142.9 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.004743/1.893, allocations: 3.461 MB / 0.7996 GB, free: 139.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001283/1.894, allocations: 0.6881 MB / 0.8003 GB, free: 139.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02094/1.915, allocations: 11.49 MB / 0.8115 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.298e-05/1.916, allocations: 32 kB / 0.8115 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.528e-05/1.916, allocations: 20 kB / 0.8116 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-05/1.916, allocations: 15.94 kB / 0.8116 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03927/1.955, allocations: 24.74 MB / 0.8357 GB, free: 102.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.52e-05/1.955, allocations: 4 kB / 0.8357 GB, free: 102.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/1.957, allocations: 423.3 kB / 0.8362 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01499/1.972, allocations: 5.376 MB / 0.8414 GB, free: 96.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005898/1.972, allocations: 56 kB / 0.8415 GB, free: 96.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03207/2.004, allocations: 30.36 MB / 0.8711 GB, free: 66.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/2.005, allocations: 8 kB / 0.8711 GB, free: 66.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02589/2.03, allocations: 16.52 MB / 0.8872 GB, free: 49.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/2.032, allocations: 0.7216 MB / 0.8879 GB, free: 48.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001474/2.034, allocations: 63.98 kB / 0.888 GB, free: 48.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003298/2.037, allocations: 259 kB / 0.8883 GB, free: 48.44 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007928/2.038, allocations: 242.6 kB / 0.8885 GB, free: 48.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002497/2.038, allocations: 95.98 kB / 0.8886 GB, free: 48.11 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006143/2.044, allocations: 4.608 MB / 0.8931 GB, free: 43.53 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.11e-07/2.044, allocations: 0 / 0.8931 GB, free: 43.53 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008578/2.053, allocations: 1.958 MB / 0.895 GB, free: 41.58 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.02717/2.08, allocations: 17.22 MB / 0.9118 GB, free: 24.17 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01479/2.095, allocations: 10.53 MB / 0.9221 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.381e-05/2.095, allocations: 0 / 0.9221 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007407/2.102, allocations: 4.692 MB / 0.9267 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008091/2.111, allocations: 1.089 MB / 0.9277 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3525/2.463, allocations: 91.61 MB / 1.017 GB, free: 127.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006622/2.47, allocations: 5.531 MB / 1.023 GB, free: 121.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005325/2.475, allocations: 2.621 MB / 1.025 GB, free: 119.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003495/2.479, allocations: 3.741 MB / 1.029 GB, free: 115.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.202e-06/2.479, allocations: 0 / 1.029 GB, free: 115.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4243/2.903, allocations: 157.4 MB / 1.183 GB, free: 152.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.15/41.06, allocations: 5.438 kB / 1.183 GB, free: 152.4 MB / 0.545 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)