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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001128/0.001128, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008718/0.0008716, allocations: 90.61 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002441/0.0002443, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2077, allocations: 47.56 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1019/0.3096, allocations: 97.82 MB / 473.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.31, allocations: 87.95 kB / 473.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4973/0.8073, allocations: 166.5 MB / 0.6253 GB, free: 5.551 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.8074, allocations: 0 / 0.6253 GB, free: 5.551 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006335/0.808, allocations: 160 kB / 0.6255 GB, free: 5.395 MB / 394.7 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.02757/0.8356, allocations: 9.327 MB / 0.6346 GB, free: 11.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.697e-05/0.8357, allocations: 12.03 kB / 0.6346 GB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006009/0.8417, allocations: 1.26 MB / 0.6358 GB, free: 10.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.232/1.074, allocations: 16.53 MB / 0.652 GB, free: 50.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0271/1.101, allocations: 13.84 MB / 0.6655 GB, free: 50.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005524/1.101, allocations: 0.5475 MB / 0.666 GB, free: 50.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003053/1.104, allocations: 0.7639 MB / 0.6668 GB, free: 50.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03352/1.138, allocations: 16.97 MB / 0.6834 GB, free: 46.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005611/1.139, allocations: 109.1 kB / 0.6835 GB, free: 46.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002085/1.141, allocations: 350.9 kB / 0.6838 GB, free: 46.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001936/1.143, allocations: 1.536 MB / 0.6853 GB, free: 46.63 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02681/1.169, allocations: 13.34 MB / 0.6983 GB, free: 46.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0756/1.245, allocations: 74.81 MB / 0.7714 GB, free: 8.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01757/1.263, allocations: 7.097 MB / 0.7783 GB, free: 2.504 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02209/1.285, allocations: 11.95 MB / 0.79 GB, free: 8.352 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.08e-05/1.285, allocations: 72.11 kB / 0.79 GB, free: 8.277 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 5.009e-06/1.285, allocations: 0 / 0.79 GB, free: 8.277 MB / 442.7 MB Notification: Performance of matching and sorting (n=366): time 0.3258/1.611, allocations: 43.1 MB / 0.8321 GB, free: 91.47 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/1.611, allocations: 405.1 kB / 0.8325 GB, free: 91.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01042/1.621, allocations: 6.44 MB / 0.8388 GB, free: 90.54 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008053/1.622, allocations: 81.77 kB / 0.8389 GB, free: 90.51 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0039/1.626, allocations: 5.446 MB / 0.8442 GB, free: 88.15 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001523/1.628, allocations: 1.341 MB / 0.8455 GB, free: 87.36 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005727/1.628, allocations: 174.5 kB / 0.8457 GB, free: 87.36 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004829/1.629, allocations: 0.6692 MB / 0.8463 GB, free: 87.03 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004588/1.633, allocations: 3.537 MB / 0.8498 GB, free: 87.01 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0068/1.64, allocations: 8.399 MB / 0.858 GB, free: 80.79 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007552/1.648, allocations: 5.326 MB / 0.8632 GB, free: 80.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001999/1.648, allocations: 52.72 kB / 0.8632 GB, free: 80.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.02756/1.676, allocations: 14.97 MB / 0.8779 GB, free: 79.69 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001408/1.676, allocations: 75.31 kB / 0.8779 GB, free: 79.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002453/1.676, allocations: 171.6 kB / 0.8781 GB, free: 79.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01064/1.687, allocations: 3.731 MB / 0.8817 GB, free: 78.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006235/1.693, allocations: 1.86 MB / 0.8836 GB, free: 78.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02926/1.722, allocations: 24.72 MB / 0.9077 GB, free: 66.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008324/1.731, allocations: 0.4883 MB / 0.9082 GB, free: 66.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001806/1.732, allocations: 0.491 MB / 0.9087 GB, free: 66.48 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 770 * 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 (1003): * Single equations (assignments): 997 * 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.009128/1.742, allocations: 3.627 MB / 0.9122 GB, free: 64.87 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001659/1.743, allocations: 0.6875 MB / 0.9129 GB, free: 64.49 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01726/1.761, allocations: 8.918 MB / 0.9216 GB, free: 60.84 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.602e-05/1.761, allocations: 42.02 kB / 0.9216 GB, free: 60.81 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.773e-05/1.761, allocations: 20 kB / 0.9216 GB, free: 60.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.073e-05/1.761, allocations: 21.23 kB / 0.9217 GB, free: 60.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03825/1.799, allocations: 19.49 MB / 0.9407 GB, free: 44.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.949e-05/1.799, allocations: 11.95 kB / 0.9407 GB, free: 44.94 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001945/1.801, allocations: 450.4 kB / 0.9411 GB, free: 44.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008619/1.81, allocations: 3.485 MB / 0.9445 GB, free: 42.09 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005596/1.81, allocations: 67.94 kB / 0.9446 GB, free: 42.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02607/1.836, allocations: 24 MB / 0.9681 GB, free: 21.03 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/1.836, allocations: 15.33 kB / 0.9681 GB, free: 21.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0213/1.858, allocations: 15.04 MB / 0.9827 GB, free: 7.781 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2075/2.065, allocations: 1.228 MB / 0.9839 GB, free: 83 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002059/2.067, allocations: 66.78 kB / 0.984 GB, free: 83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004346/2.072, allocations: 213.3 kB / 0.9842 GB, free: 83 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009465/2.073, allocations: 269.3 kB / 0.9845 GB, free: 82.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003171/2.073, allocations: 98.91 kB / 0.9846 GB, free: 82.99 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01015/2.083, allocations: 4.657 MB / 0.9891 GB, free: 82.78 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.142e-06/2.083, allocations: 2.75 kB / 0.9891 GB, free: 82.78 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0113/2.095, allocations: 2.009 MB / 0.9911 GB, free: 82.78 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (243): * Single equations (assignments): 237 * 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 {(8,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.02421/2.119, allocations: 17.02 MB / 1.008 GB, free: 78.42 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0153/2.134, allocations: 9.383 MB / 1.017 GB, free: 77.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.517e-05/2.134, allocations: 3.406 kB / 1.017 GB, free: 77.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005956/2.14, allocations: 4.131 MB / 1.021 GB, free: 77.45 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006021/2.146, allocations: 1.022 MB / 1.022 GB, free: 77.41 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3709/2.517, allocations: 194.2 MB / 1.212 GB, free: 137.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009502/2.527, allocations: 5.943 MB / 1.217 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008933/2.536, allocations: 2.79 MB / 1.22 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006784/2.543, allocations: 3.955 MB / 1.224 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.112e-06/2.543, allocations: 0 / 1.224 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.423/2.966, allocations: 162.7 MB / 1.383 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001518/2.966, allocations: 217.5 kB / 1.383 GB, free: 142.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.104/9.07, allocations: 4 kB / 1.383 GB, free: 142.9 MB / 0.5105 GB (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)