Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_4_0_0_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_0_0_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/Complex 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 181.1 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 88.67 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.0002798, allocations: 4 kB / 351.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2493, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.3921, allocations: 111.8 MB / 0.5013 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.3924, allocations: 99.94 kB / 0.5014 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9566/1.349, allocations: 185.4 MB / 0.6824 GB, free: 42.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.349, allocations: 0 / 0.6824 GB, free: 42.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007698/1.35, allocations: 185.8 kB / 0.6826 GB, free: 42.68 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.03323/1.383, allocations: 10.24 MB / 0.6926 GB, free: 38.94 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/1.383, allocations: 7.781 kB / 0.6926 GB, free: 38.94 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00712/1.39, allocations: 1.396 MB / 0.694 GB, free: 38.83 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0585/1.449, allocations: 16.63 MB / 0.7102 GB, free: 38.22 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03264/1.482, allocations: 13.72 MB / 0.7236 GB, free: 36.94 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000708/1.482, allocations: 0.6275 MB / 0.7242 GB, free: 36.92 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004555/1.487, allocations: 0.8522 MB / 0.7251 GB, free: 36.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04909/1.536, allocations: 19.43 MB / 0.744 GB, free: 33.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009392/1.537, allocations: 108.9 kB / 0.7441 GB, free: 33.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004503/1.542, allocations: 391.6 kB / 0.7445 GB, free: 33.15 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002544/1.544, allocations: 1.607 MB / 0.7461 GB, free: 32.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0334/1.578, allocations: 15.58 MB / 0.7613 GB, free: 23.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3884/1.966, allocations: 80.49 MB / 0.8399 GB, free: 75.56 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02035/1.986, allocations: 7.93 MB / 0.8477 GB, free: 74.87 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02348/2.01, allocations: 14.04 MB / 0.8614 GB, free: 71.41 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.641e-05/2.01, allocations: 70.92 kB / 0.8614 GB, free: 71.37 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 4.949e-06/2.01, allocations: 0 / 0.8614 GB, free: 71.37 MB / 474.7 MB Notification: Performance of matching and sorting (n=417): time 0.1831/2.193, allocations: 51.49 MB / 0.9117 GB, free: 65.54 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001766/2.193, allocations: 407.2 kB / 0.9121 GB, free: 65.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01443/2.208, allocations: 6.562 MB / 0.9185 GB, free: 64.56 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00131/2.209, allocations: 95.23 kB / 0.9186 GB, free: 64.53 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005331/2.215, allocations: 5.819 MB / 0.9243 GB, free: 62.06 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002577/2.217, allocations: 1.507 MB / 0.9258 GB, free: 61.16 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001051/2.218, allocations: 184.9 kB / 0.9259 GB, free: 61.16 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005503/2.219, allocations: 0.6993 MB / 0.9266 GB, free: 60.84 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006623/2.225, allocations: 4.286 MB / 0.9308 GB, free: 59.69 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01024/2.236, allocations: 9.276 MB / 0.9399 GB, free: 51.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0103/2.246, allocations: 6.202 MB / 0.9459 GB, free: 47.49 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002871/2.246, allocations: 52 kB / 0.946 GB, free: 47.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=1218) (initialization): time 0.04035/2.287, allocations: 17.65 MB / 0.9632 GB, free: 33.26 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/2.287, allocations: 76 kB / 0.9633 GB, free: 33.19 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001872/2.287, allocations: 172 kB / 0.9634 GB, free: 33.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01507/2.302, allocations: 4.934 MB / 0.9683 GB, free: 29.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006904/2.309, allocations: 1.972 MB / 0.9702 GB, free: 27.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03595/2.345, allocations: 27.6 MB / 0.9971 GB, free: 4.105 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/2.356, allocations: 0.5434 MB / 0.9977 GB, free: 3.645 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002364/2.358, allocations: 0.5072 MB / 0.9982 GB, free: 3.145 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * 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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01063/2.369, allocations: 4.091 MB / 1.002 GB, free: 15.56 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002383/2.371, allocations: 0.7056 MB / 1.003 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3439/2.715, allocations: 11.54 MB / 1.014 GB, free: 89.75 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.373e-05/2.715, allocations: 42.61 kB / 1.014 GB, free: 89.75 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.965e-05/2.715, allocations: 23.88 kB / 1.014 GB, free: 89.75 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001024/2.715, allocations: 24.34 kB / 1.014 GB, free: 89.74 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05047/2.766, allocations: 24.8 MB / 1.038 GB, free: 88.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.658e-05/2.766, allocations: 7.156 kB / 1.038 GB, free: 88.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002748/2.768, allocations: 0.5774 MB / 1.039 GB, free: 88.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01379/2.782, allocations: 4.501 MB / 1.043 GB, free: 88.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006685/2.783, allocations: 78.44 kB / 1.043 GB, free: 88.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03101/2.814, allocations: 24.47 MB / 1.067 GB, free: 83.58 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.407e-06/2.814, allocations: 16.48 kB / 1.067 GB, free: 83.58 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03129/2.845, allocations: 18.51 MB / 1.085 GB, free: 75.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006142/2.852, allocations: 1.399 MB / 1.087 GB, free: 74.76 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002645/2.854, allocations: 79.95 kB / 1.087 GB, free: 74.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005015/2.859, allocations: 260.1 kB / 1.087 GB, free: 74.66 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001283/2.861, allocations: 294.5 kB / 1.087 GB, free: 74.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004954/2.861, allocations: 113.1 kB / 1.088 GB, free: 74.59 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01182/2.873, allocations: 4.739 MB / 1.092 GB, free: 73.02 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.7e-07/2.873, allocations: 0 / 1.092 GB, free: 73.02 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01475/2.888, allocations: 2.23 MB / 1.094 GB, free: 72.79 MB / 490.7 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 (288): * Single equations (assignments): 284 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03328/2.921, allocations: 20.47 MB / 1.114 GB, free: 62.74 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01767/2.939, allocations: 10.92 MB / 1.125 GB, free: 55.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.746e-05/2.939, allocations: 4 kB / 1.125 GB, free: 55.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007708/2.947, allocations: 4.669 MB / 1.13 GB, free: 51.42 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00713/2.954, allocations: 1.052 MB / 1.131 GB, free: 50.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3905/3.344, allocations: 157.7 MB / 1.285 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01076/3.355, allocations: 6.565 MB / 1.291 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0088/3.364, allocations: 2.941 MB / 1.294 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0078/3.372, allocations: 4.349 MB / 1.298 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of SimCode: time 7.91e-07/3.372, allocations: 0 / 1.298 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5135/3.885, allocations: 177.1 MB / 1.471 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001476/3.885, allocations: 217.7 kB / 1.471 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.443/12.33, allocations: 0 / 1.471 GB, free: 105.3 MB / 0.5105 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat