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.001516/0.001516, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009801/0.0009797, allocations: 78.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.959e-05/1.96e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1095, allocations: 47.59 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4186/0.5282, allocations: 97.3 MB / 460.5 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/0.5286, allocations: 91.88 kB / 460.6 MB, free: 14.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7092/1.238, allocations: 163.3 MB / 0.6092 GB, free: 75.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.238, allocations: 0 / 0.6092 GB, free: 75.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008643/1.239, allocations: 167.9 kB / 0.6094 GB, free: 75.08 MB / 410.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.03312/1.272, allocations: 8.192 MB / 0.6174 GB, free: 66.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/1.272, allocations: 12.03 kB / 0.6174 GB, free: 66.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06186/1.334, allocations: 16.57 MB / 0.6336 GB, free: 50.22 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0379/1.372, allocations: 13.75 MB / 0.647 GB, free: 36.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006029/1.372, allocations: 240 kB / 0.6472 GB, free: 36.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004787/1.377, allocations: 467.6 kB / 0.6477 GB, free: 35.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02376/1.401, allocations: 9.881 MB / 0.6573 GB, free: 25.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04025/1.441, allocations: 14.79 MB / 0.6718 GB, free: 9.848 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009948/1.442, allocations: 111 kB / 0.6719 GB, free: 9.738 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00443/1.447, allocations: 40 kB / 0.6719 GB, free: 9.699 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003076/1.45, allocations: 1.527 MB / 0.6734 GB, free: 8.176 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6452/2.095, allocations: 72.62 MB / 0.7443 GB, free: 40.11 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008027/2.103, allocations: 5.386 MB / 0.7496 GB, free: 39.44 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00503/2.108, allocations: 3.827 MB / 0.7533 GB, free: 39.39 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001217/2.11, allocations: 1.376 MB / 0.7547 GB, free: 38.16 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.319e-05/2.11, allocations: 64.59 kB / 0.7547 GB, free: 38.12 MB / 426.8 MB Notification: Performance of pre-optimization done (n=299): time 7.895e-06/2.11, allocations: 0 / 0.7547 GB, free: 38.12 MB / 426.8 MB Notification: Performance of matching and sorting (n=371): time 0.09/2.2, allocations: 35.76 MB / 0.7897 GB, free: 29.66 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001367/2.2, allocations: 402.2 kB / 0.79 GB, free: 29.21 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.012/2.212, allocations: 5.657 MB / 0.7956 GB, free: 27.25 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001074/2.213, allocations: 25.7 kB / 0.7956 GB, free: 27.22 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004459/2.218, allocations: 5.487 MB / 0.801 GB, free: 23.14 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001974/2.22, allocations: 1.316 MB / 0.8022 GB, free: 22.14 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008408/2.22, allocations: 3.812 kB / 0.8022 GB, free: 22.14 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004368/2.221, allocations: 0.6767 MB / 0.8029 GB, free: 21.68 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004294/2.225, allocations: 3.355 MB / 0.8062 GB, free: 20.43 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006968/2.232, allocations: 8.295 MB / 0.8143 GB, free: 11.4 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007231/2.239, allocations: 5.188 MB / 0.8193 GB, free: 7.258 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/2.24, allocations: 52 kB / 0.8194 GB, free: 7.207 MB / 426.8 MB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.03461/2.274, allocations: 13.92 MB / 0.833 GB, free: 12.07 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.00032/2.275, allocations: 80 kB / 0.8331 GB, free: 11.99 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000453/2.275, allocations: 172 kB / 0.8332 GB, free: 11.82 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01194/2.287, allocations: 3.693 MB / 0.8368 GB, free: 9.074 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007522/2.295, allocations: 1.912 MB / 0.8387 GB, free: 7.402 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04396/2.339, allocations: 22.85 MB / 0.861 GB, free: 5.496 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009579/2.348, allocations: 335.4 kB / 0.8613 GB, free: 5.234 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002676/2.351, allocations: 0.5084 MB / 0.8618 GB, free: 4.738 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 794 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1032): * Single equations (assignments): 1026 * 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%) 98,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.004042/2.355, allocations: 0.5611 MB / 0.8624 GB, free: 4.176 MB / 458.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3603/2.715, allocations: 8.774 MB / 0.871 GB, free: 102.8 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002823/2.718, allocations: 0.6537 MB / 0.8716 GB, free: 102.8 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02032/2.739, allocations: 8.486 MB / 0.8799 GB, free: 102.5 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.795e-05/2.739, allocations: 37.62 kB / 0.8799 GB, free: 102.5 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.206e-05/2.739, allocations: 20.72 kB / 0.8799 GB, free: 102.5 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-05/2.739, allocations: 21.56 kB / 0.88 GB, free: 102.5 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04096/2.78, allocations: 18.12 MB / 0.8977 GB, free: 101.1 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.963e-05/2.78, allocations: 10.22 kB / 0.8977 GB, free: 101.1 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/2.782, allocations: 455.9 kB / 0.8981 GB, free: 101.1 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009789/2.792, allocations: 3.408 MB / 0.9014 GB, free: 101.1 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008151/2.793, allocations: 13.02 kB / 0.9014 GB, free: 101.1 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02731/2.82, allocations: 21.57 MB / 0.9225 GB, free: 92.77 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.96e-05/2.82, allocations: 15.22 kB / 0.9225 GB, free: 92.77 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02224/2.843, allocations: 14.56 MB / 0.9367 GB, free: 86.23 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003945/2.847, allocations: 1.195 MB / 0.9379 GB, free: 85.57 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001537/2.848, allocations: 14.86 kB / 0.9379 GB, free: 85.57 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003103/2.851, allocations: 160.1 kB / 0.9381 GB, free: 85.57 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008156/2.852, allocations: 271.2 kB / 0.9383 GB, free: 85.52 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002615/2.852, allocations: 104.5 kB / 0.9384 GB, free: 85.49 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.007291/2.86, allocations: 3.946 MB / 0.9423 GB, free: 84.11 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.21e-07/2.86, allocations: 0 / 0.9423 GB, free: 84.11 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01432/2.874, allocations: 1.76 MB / 0.944 GB, free: 84.1 MB / 458.8 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 242 * 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.02573/2.9, allocations: 16.6 MB / 0.9602 GB, free: 71.86 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01478/2.915, allocations: 8.956 MB / 0.969 GB, free: 63.93 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/2.915, allocations: 7.938 kB / 0.969 GB, free: 63.92 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00629/2.921, allocations: 3.939 MB / 0.9728 GB, free: 60.35 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006701/2.928, allocations: 0.8743 MB / 0.9737 GB, free: 59.65 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05236/2.98, allocations: 17.55 MB / 0.9908 GB, free: 44.51 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01084/2.991, allocations: 5.941 MB / 0.9966 GB, free: 40.21 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.008346/2.999, allocations: 2.853 MB / 0.9994 GB, free: 38.11 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006699/3.006, allocations: 3.922 MB / 1.003 GB, free: 34.19 MB / 458.8 MB Notification: Performance of SimCode: time 1.272e-06/3.006, allocations: 0 / 1.003 GB, free: 34.19 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.562/3.568, allocations: 152 MB / 1.152 GB, free: 30.89 MB / 458.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/3.568, allocations: 136.9 kB / 1.152 GB, free: 30.7 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.179/11.75, allocations: 7.938 kB / 1.152 GB, free: 30.69 MB / 458.8 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)