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.001766/0.001766, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002204/0.002204, allocations: 214.4 kB / 18.59 MB, free: 4.402 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.463/1.463, allocations: 227.7 MB / 247.1 MB, free: 10.29 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.001952/0.001952, allocations: 63.31 kB / 307.3 MB, free: 416 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09642/0.09839, allocations: 50.54 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1801/0.2786, allocations: 23.3 MB / 381.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01392/0.2925, allocations: 7.078 MB / 388.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004642/0.2973, allocations: 181.9 kB / 388.4 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01404/0.3113, allocations: 7.905 MB / 396.3 MB, free: 204 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01048/0.3218, allocations: 3.538 MB / 399.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005421/0.3273, allocations: 2.004 MB / 401.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01976/0.3471, allocations: 13.57 MB / 415.4 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01423/0.3614, allocations: 10.47 MB / 425.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00868/0.3701, allocations: 4.238 MB / 430.2 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009789/0.3799, allocations: 5.699 MB / 435.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003411/0.3834, allocations: 1.004 MB / 436.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005934/0.3893, allocations: 2.131 MB / 439 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00698/0.3963, allocations: 4.992 MB / 444 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009936/0.4063, allocations: 5.687 MB / 449.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02212/0.4284, allocations: 17.58 MB / 467.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.4285, allocations: 0 / 467.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4285, allocations: 4 kB / 467.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005376/0.4291, allocations: 0 / 467.2 MB, free: 13.61 MB / 382.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.03655/0.4656, allocations: 11.85 MB / 479.1 MB, free: 1.648 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.4657, allocations: 8.031 kB / 479.1 MB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003616/0.4693, allocations: 1.337 MB / 480.4 MB, free: 300 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.303/0.7723, allocations: 24.51 MB / 0.4931 GB, free: 7.734 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02437/0.7967, allocations: 9.974 MB / 0.5029 GB, free: 13.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006194/0.7974, allocations: 0.5256 MB / 0.5034 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003293/0.8007, allocations: 0.7298 MB / 0.5041 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04237/0.8431, allocations: 19.12 MB / 0.5228 GB, free: 8.246 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003572/0.8435, allocations: 99.09 kB / 0.5229 GB, free: 8.148 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001421/0.8449, allocations: 323.8 kB / 0.5232 GB, free: 7.832 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004694/0.8496, allocations: 2.821 MB / 0.5259 GB, free: 5.008 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3578/1.207, allocations: 15.47 MB / 0.541 GB, free: 129.4 MB / 446.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.08536/1.293, allocations: 72.5 MB / 0.6118 GB, free: 70.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02028/1.313, allocations: 8.024 MB / 0.6197 GB, free: 62.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005083/1.318, allocations: 4.25 MB / 0.6238 GB, free: 58.18 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01822/1.337, allocations: 14.25 MB / 0.6377 GB, free: 43.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/1.337, allocations: 68.56 kB / 0.6378 GB, free: 43.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=309): time 4.99e-06/1.337, allocations: 0 / 0.6378 GB, free: 43.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=416): time 0.1726/1.509, allocations: 50.64 MB / 0.6872 GB, free: 8.605 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002536/1.51, allocations: 406.7 kB / 0.6876 GB, free: 8.121 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01659/1.526, allocations: 7.591 MB / 0.695 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009247/1.527, allocations: 91.58 kB / 0.6951 GB, free: 444 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005768/1.533, allocations: 5.794 MB / 0.7008 GB, free: 10.57 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002264/1.535, allocations: 1.503 MB / 0.7023 GB, free: 9.051 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003421/1.539, allocations: 1.833 MB / 0.704 GB, free: 7.203 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002386/1.539, allocations: 309.1 kB / 0.7043 GB, free: 6.898 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007443/1.546, allocations: 4.457 MB / 0.7087 GB, free: 2.434 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1849/1.731, allocations: 9.411 MB / 0.7179 GB, free: 146.6 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01877/1.75, allocations: 14.92 MB / 0.7324 GB, free: 136.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004146/1.751, allocations: 48.56 kB / 0.7325 GB, free: 136.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.04042/1.791, allocations: 18.11 MB / 0.7502 GB, free: 129.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001649/1.791, allocations: 79.06 kB / 0.7503 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002858/1.792, allocations: 168.1 kB / 0.7504 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01569/1.807, allocations: 5.209 MB / 0.7555 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006407/1.814, allocations: 1.954 MB / 0.7574 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03606/1.85, allocations: 30.23 MB / 0.7869 GB, free: 102.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007589/1.857, allocations: 0.5465 MB / 0.7875 GB, free: 102.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001229/1.859, allocations: 0.5039 MB / 0.788 GB, free: 101.9 MB / 478.1 MB 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.005832/1.865, allocations: 4.082 MB / 0.7919 GB, free: 97.93 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001297/1.866, allocations: 0.7078 MB / 0.7926 GB, free: 97.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02154/1.887, allocations: 11.92 MB / 0.8043 GB, free: 85.63 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.028e-05/1.887, allocations: 44 kB / 0.8043 GB, free: 85.59 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-05/1.888, allocations: 20 kB / 0.8043 GB, free: 85.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.53e-05/1.888, allocations: 23.92 kB / 0.8044 GB, free: 85.55 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0424/1.93, allocations: 25.69 MB / 0.8295 GB, free: 59.77 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.387e-05/1.93, allocations: 8 kB / 0.8295 GB, free: 59.76 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002903/1.933, allocations: 0.5772 MB / 0.83 GB, free: 59.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01431/1.947, allocations: 4.841 MB / 0.8348 GB, free: 54.34 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007451/1.948, allocations: 72 kB / 0.8348 GB, free: 54.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03142/1.98, allocations: 26.93 MB / 0.8611 GB, free: 27.36 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/1.98, allocations: 13.58 kB / 0.8611 GB, free: 27.35 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02792/2.008, allocations: 17.8 MB / 0.8785 GB, free: 9.492 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001843/2.009, allocations: 0.7227 MB / 0.8792 GB, free: 8.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001816/2.011, allocations: 75.94 kB / 0.8793 GB, free: 8.676 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004334/2.016, allocations: 275.7 kB / 0.8796 GB, free: 8.406 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001353/2.017, allocations: 291.1 kB / 0.8798 GB, free: 8.121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003518/2.017, allocations: 114.4 kB / 0.8799 GB, free: 8.012 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.1931/2.21, allocations: 4.88 MB / 0.8847 GB, free: 139.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.61e-07/2.21, allocations: 0 / 0.8847 GB, free: 139.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01154/2.222, allocations: 2.21 MB / 0.8869 GB, free: 139.6 MB / 478.1 MB 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.03361/2.256, allocations: 18.56 MB / 0.905 GB, free: 134.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02524/2.281, allocations: 15.89 MB / 0.9205 GB, free: 129.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/2.281, allocations: 3.828 kB / 0.9205 GB, free: 129.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007898/2.289, allocations: 4.819 MB / 0.9252 GB, free: 127 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009344/2.298, allocations: 1.176 MB / 0.9264 GB, free: 126 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1683/2.467, allocations: 126.3 MB / 1.05 GB, free: 8.023 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01173/2.478, allocations: 6.374 MB / 1.056 GB, free: 1.613 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.2099/2.688, allocations: 2.915 MB / 1.059 GB, free: 151.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005972/2.694, allocations: 4.352 MB / 1.063 GB, free: 151.5 MB / 494.1 MB Notification: Performance of SimCode: time 9.01e-07/2.694, allocations: 2 kB / 1.063 GB, free: 151.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4191/3.113, allocations: 183.5 MB / 1.242 GB, free: 124.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.8/17.91, allocations: 6.641 kB / 1.242 GB, free: 124.4 MB / 494.1 MB (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)