Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_3_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.001018/0.001018, allocations: 97.31 kB / 16.95 MB, free: 6.453 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.001199/0.001199, allocations: 182.5 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.4 MB / 224 MB, free: 13.14 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004505/0.0004505, allocations: 12 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09768/0.09814, allocations: 47.57 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.305/0.4032, allocations: 101.3 MB / 429.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.05834/0.4616, allocations: 20.44 MB / 450.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.029/0.4907, allocations: 0.4948 MB / 450.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01762/0.5083, allocations: 5.291 MB / 455.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04574/0.5541, allocations: 15.65 MB / 471.6 MB, free: 7.355 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008258/0.5624, allocations: 1.489 MB / 473.1 MB, free: 5.867 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3779/0.9403, allocations: 98.58 MB / 0.5583 GB, free: 68.57 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01541/0.9558, allocations: 9.305 MB / 0.5673 GB, free: 65.34 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00717/0.963, allocations: 3.1 MB / 0.5704 GB, free: 63.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007651/0.9707, allocations: 4.636 MB / 0.5749 GB, free: 60.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002604/0.9734, allocations: 292 kB / 0.5752 GB, free: 59.85 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004685/0.9781, allocations: 1.134 MB / 0.5763 GB, free: 58.92 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005905/0.984, allocations: 3.844 MB / 0.58 GB, free: 56.05 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004445/0.9885, allocations: 1.658 MB / 0.5817 GB, free: 55.44 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01253/1.001, allocations: 11.69 MB / 0.5931 GB, free: 45.28 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/1.001, allocations: 0 / 0.5931 GB, free: 45.28 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.314e-06/1.001, allocations: 8 kB / 0.5931 GB, free: 45.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006034/1.002, allocations: 0 / 0.5931 GB, free: 45.27 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02772/1.029, allocations: 9.045 MB / 0.6019 GB, free: 36.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/1.029, allocations: 8.031 kB / 0.6019 GB, free: 36.93 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004763/1.034, allocations: 1.206 MB / 0.6031 GB, free: 36.21 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2262/1.26, allocations: 24.83 MB / 0.6274 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02373/1.284, allocations: 10.54 MB / 0.6376 GB, free: 5.066 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005078/1.285, allocations: 447.9 kB / 0.6381 GB, free: 4.824 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003259/1.288, allocations: 0.6169 MB / 0.6387 GB, free: 4.414 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04287/1.331, allocations: 16.76 MB / 0.655 GB, free: 7.367 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006143/1.332, allocations: 100.7 kB / 0.6551 GB, free: 7.305 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002661/1.334, allocations: 279.6 kB / 0.6554 GB, free: 7.23 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00498/1.339, allocations: 2.864 MB / 0.6582 GB, free: 4.887 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03161/1.371, allocations: 13.27 MB / 0.6712 GB, free: 10.15 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.5049/1.876, allocations: 67.8 MB / 0.7374 GB, free: 161.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01776/1.894, allocations: 7.179 MB / 0.7444 GB, free: 161.1 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004803/1.899, allocations: 4.139 MB / 0.7484 GB, free: 161.1 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01762/1.916, allocations: 12.06 MB / 0.7602 GB, free: 155.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.649e-05/1.916, allocations: 67.81 kB / 0.7603 GB, free: 155.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 6.131e-06/1.916, allocations: 3.656 kB / 0.7603 GB, free: 155.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=365): time 0.13/2.046, allocations: 41.3 MB / 0.8006 GB, free: 122 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/2.047, allocations: 397.9 kB / 0.801 GB, free: 121.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01128/2.058, allocations: 7.413 MB / 0.8082 GB, free: 114.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009819/2.059, allocations: 81.7 kB / 0.8083 GB, free: 114.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003019/2.062, allocations: 5.386 MB / 0.8136 GB, free: 108.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001694/2.064, allocations: 1.333 MB / 0.8149 GB, free: 107.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004069/2.064, allocations: 172 kB / 0.815 GB, free: 107.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003298/2.064, allocations: 0.6775 MB / 0.8157 GB, free: 106.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004505/2.069, allocations: 3.659 MB / 0.8193 GB, free: 102.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00616/2.075, allocations: 8.478 MB / 0.8275 GB, free: 92.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006216/2.081, allocations: 5.423 MB / 0.8328 GB, free: 86.94 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.217e-05/2.081, allocations: 48 kB / 0.8329 GB, free: 86.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=1124) (initialization): time 0.02572/2.107, allocations: 15.33 MB / 0.8479 GB, free: 71.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/2.107, allocations: 78.19 kB / 0.8479 GB, free: 71.42 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001515/2.107, allocations: 164 kB / 0.8481 GB, free: 71.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01048/2.118, allocations: 4.064 MB / 0.8521 GB, free: 67.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006445/2.124, allocations: 1.84 MB / 0.8539 GB, free: 65.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03369/2.158, allocations: 25.54 MB / 0.8788 GB, free: 39.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008234/2.166, allocations: 0.4992 MB / 0.8793 GB, free: 38.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001815/2.168, allocations: 500 kB / 0.8798 GB, free: 38.41 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (988): * Single equations (assignments): 982 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.008157/2.176, allocations: 3.613 MB / 0.8833 GB, free: 34.78 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002054/2.178, allocations: 0.6865 MB / 0.884 GB, free: 34.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01901/2.198, allocations: 9.394 MB / 0.8931 GB, free: 24.62 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.985e-05/2.198, allocations: 47.94 kB / 0.8932 GB, free: 24.58 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.568e-05/2.198, allocations: 16 kB / 0.8932 GB, free: 24.56 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.184e-05/2.198, allocations: 19.94 kB / 0.8932 GB, free: 24.54 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04335/2.241, allocations: 20.32 MB / 0.9131 GB, free: 4.016 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.246e-05/2.241, allocations: 8 kB / 0.9131 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/2.243, allocations: 451.3 kB / 0.9135 GB, free: 3.566 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2496/2.493, allocations: 3.835 MB / 0.9172 GB, free: 180.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001333/2.494, allocations: 71.16 kB / 0.9173 GB, free: 180.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03429/2.529, allocations: 24.86 MB / 0.9416 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/2.529, allocations: 10.31 kB / 0.9416 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02227/2.551, allocations: 14.16 MB / 0.9554 GB, free: 167.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003781/2.555, allocations: 1.281 MB / 0.9567 GB, free: 166.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00184/2.557, allocations: 72.02 kB / 0.9567 GB, free: 166.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003507/2.56, allocations: 219.6 kB / 0.9569 GB, free: 166.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007966/2.561, allocations: 264.5 kB / 0.9572 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002591/2.561, allocations: 102.4 kB / 0.9573 GB, free: 166.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.008367/2.57, allocations: 4.769 MB / 0.962 GB, free: 165.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.71e-07/2.57, allocations: 3.125 kB / 0.962 GB, free: 165.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01228/2.582, allocations: 2.011 MB / 0.9639 GB, free: 164.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.02732/2.609, allocations: 14.87 MB / 0.9784 GB, free: 152.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01626/2.626, allocations: 9.636 MB / 0.9879 GB, free: 142.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/2.626, allocations: 3.406 kB / 0.9879 GB, free: 142.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007687/2.633, allocations: 4.344 MB / 0.9921 GB, free: 138.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0101/2.644, allocations: 1.073 MB / 0.9931 GB, free: 137.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1557/2.799, allocations: 79.84 MB / 1.071 GB, free: 51.31 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009045/2.808, allocations: 5.761 MB / 1.077 GB, free: 45.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008178/2.817, allocations: 2.769 MB / 1.079 GB, free: 42.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006333/2.823, allocations: 3.948 MB / 1.083 GB, free: 38.79 MB / 494.1 MB Notification: Performance of SimCode: time 1.292e-06/2.823, allocations: 4 kB / 1.083 GB, free: 38.78 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4676/3.291, allocations: 165.4 MB / 1.245 GB, free: 73.35 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001279/3.291, allocations: 231.3 kB / 1.245 GB, free: 73.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.002/10.29, allocations: 4 kB / 1.245 GB, free: 73.09 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) Environment - environmentSimulation: