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.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 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.Engine1b_analytic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_4_1_0-beta_om_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.00131/0.00131, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001423, allocations: 203.8 kB / 18.74 MB, free: 4.332 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.382/1.382, 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.001921/0.001921, allocations: 63.91 kB / 358.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2636, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.0257/0.2893, allocations: 23.31 MB / 432.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01572/0.3051, allocations: 7.07 MB / 439.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004772/0.3099, allocations: 175.4 kB / 439.7 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01505/0.325, allocations: 7.905 MB / 447.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01052/0.3356, allocations: 3.54 MB / 451.1 MB, free: 7.215 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005807/0.3414, allocations: 2.005 MB / 453.1 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01953/0.361, allocations: 13.57 MB / 466.7 MB, free: 7.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0134/0.3744, allocations: 10.44 MB / 477.1 MB, free: 13.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008593/0.3831, allocations: 4.25 MB / 481.4 MB, free: 8.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009886/0.393, allocations: 5.691 MB / 487.1 MB, free: 3.105 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003247/0.3963, allocations: 1 MB / 488.1 MB, free: 2.105 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006175/0.4025, allocations: 2.139 MB / 490.2 MB, free: 15.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007409/0.4099, allocations: 4.988 MB / 495.2 MB, free: 10.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.011/0.421, allocations: 5.69 MB / 0.4891 GB, free: 5.246 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02441/0.4454, allocations: 17.96 MB / 0.5067 GB, free: 3.223 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.4455, allocations: 3.938 kB / 0.5067 GB, free: 3.219 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4455, allocations: 0 / 0.5067 GB, free: 3.219 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005348/0.446, allocations: 0 / 0.5067 GB, free: 3.219 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.0365/0.4825, allocations: 12.13 MB / 0.5185 GB, free: 6.973 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.4826, allocations: 12.03 kB / 0.5185 GB, free: 6.961 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004353/0.487, allocations: 1.333 MB / 0.5198 GB, free: 5.617 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7102/1.197, allocations: 24.57 MB / 0.5438 GB, free: 115.1 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01951/1.217, allocations: 10.22 MB / 0.5538 GB, free: 112.1 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003622/1.217, allocations: 0.5261 MB / 0.5543 GB, free: 111.9 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002444/1.22, allocations: 0.7263 MB / 0.555 GB, free: 111.7 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03175/1.251, allocations: 19.12 MB / 0.5737 GB, free: 93.57 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003144/1.252, allocations: 99.27 kB / 0.5738 GB, free: 93.47 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001132/1.253, allocations: 323.8 kB / 0.5741 GB, free: 93.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00327/1.256, allocations: 2.819 MB / 0.5769 GB, free: 90.4 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02658/1.283, allocations: 15.46 MB / 0.592 GB, free: 74.94 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.07257/1.355, allocations: 72.26 MB / 0.6625 GB, free: 1.031 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02263/1.378, allocations: 8.022 MB / 0.6704 GB, free: 8.863 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006215/1.384, allocations: 4.259 MB / 0.6745 GB, free: 4.586 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02315/1.407, allocations: 14.25 MB / 0.6884 GB, free: 5.922 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.616e-05/1.407, allocations: 72.52 kB / 0.6885 GB, free: 5.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=309): time 4.94e-06/1.407, allocations: 0 / 0.6885 GB, free: 5.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=416): time 0.1919/1.599, allocations: 51.15 MB / 0.7385 GB, free: 2.727 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002923/1.6, allocations: 410.6 kB / 0.7389 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.222/1.822, allocations: 7.585 MB / 0.7463 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009771/1.823, allocations: 97.17 kB / 0.7464 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003891/1.827, allocations: 5.982 MB / 0.7522 GB, free: 176.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001745/1.828, allocations: 1.578 MB / 0.7537 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002681/1.831, allocations: 1.852 MB / 0.7555 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.502e-05/1.831, allocations: 304.9 kB / 0.7558 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00519/1.836, allocations: 4.461 MB / 0.7602 GB, free: 172.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007822/1.844, allocations: 9.411 MB / 0.7694 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0136/1.858, allocations: 14.91 MB / 0.7839 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000192/1.858, allocations: 48 kB / 0.784 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.03227/1.89, allocations: 18.14 MB / 0.8017 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001235/1.89, allocations: 80.97 kB / 0.8018 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001831/1.891, allocations: 172 kB / 0.8019 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01517/1.906, allocations: 5.188 MB / 0.807 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00607/1.912, allocations: 1.95 MB / 0.8089 GB, free: 130.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03516/1.947, allocations: 30.22 MB / 0.8384 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007865/1.955, allocations: 0.5423 MB / 0.839 GB, free: 99.87 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001184/1.956, allocations: 0.5038 MB / 0.8395 GB, free: 99.37 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.005631/1.962, allocations: 4.084 MB / 0.8434 GB, free: 95.28 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001372/1.963, allocations: 0.7451 MB / 0.8442 GB, free: 94.53 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02122/1.985, allocations: 11.91 MB / 0.8558 GB, free: 82.56 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-05/1.985, allocations: 47.94 kB / 0.8559 GB, free: 82.52 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.8e-05/1.985, allocations: 23.94 kB / 0.8559 GB, free: 82.49 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.778e-05/1.985, allocations: 23.92 kB / 0.8559 GB, free: 82.47 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0434/2.028, allocations: 25.36 MB / 0.8807 GB, free: 57 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.423e-05/2.028, allocations: 11.94 kB / 0.8807 GB, free: 56.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002634/2.031, allocations: 0.5655 MB / 0.8812 GB, free: 56.42 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01458/2.045, allocations: 4.846 MB / 0.886 GB, free: 51.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000672/2.046, allocations: 76 kB / 0.886 GB, free: 51.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03176/2.078, allocations: 26.92 MB / 0.9123 GB, free: 24.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/2.078, allocations: 15.88 kB / 0.9123 GB, free: 24.42 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02833/2.106, allocations: 17.88 MB / 0.9298 GB, free: 6.363 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001881/2.108, allocations: 0.7654 MB / 0.9305 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001623/2.11, allocations: 76 kB / 0.9306 GB, free: 5.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003825/2.114, allocations: 267.6 kB / 0.9309 GB, free: 5.238 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001082/2.115, allocations: 307.2 kB / 0.9312 GB, free: 4.938 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003239/2.115, allocations: 108.3 kB / 0.9313 GB, free: 4.832 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006575/2.122, allocations: 4.884 MB / 0.936 GB, free: 15.96 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/2.122, allocations: 4 kB / 0.936 GB, free: 15.95 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009765/2.131, allocations: 2.21 MB / 0.9382 GB, free: 13.75 MB / 0.545 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.2511/2.383, allocations: 18.63 MB / 0.9564 GB, free: 173.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01444/2.397, allocations: 11.28 MB / 0.9674 GB, free: 169.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.319e-05/2.397, allocations: 6.125 kB / 0.9674 GB, free: 169.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005958/2.403, allocations: 4.791 MB / 0.9721 GB, free: 167.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006099/2.409, allocations: 1.165 MB / 0.9732 GB, free: 166.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1361/2.545, allocations: 99.88 MB / 1.071 GB, free: 67.07 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007054/2.552, allocations: 6.378 MB / 1.077 GB, free: 60.66 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005889/2.558, allocations: 2.924 MB / 1.08 GB, free: 57.72 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00462/2.563, allocations: 4.371 MB / 1.084 GB, free: 53.36 MB / 0.545 GB Notification: Performance of SimCode: time 9.31e-07/2.563, allocations: 0 / 1.084 GB, free: 53.36 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4406/3.004, allocations: 178.5 MB / 1.258 GB, free: 98.96 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 51.11/54.11, allocations: 7.859 kB / 1.258 GB, free: 98.96 MB / 0.5607 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1)