Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001796/0.001796, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001016, allocations: 86.39 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.371e-05/4.384e-05, allocations: 4 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1233, allocations: 51.48 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4286/0.552, allocations: 112.4 MB / 0.5024 GB, free: 9.523 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/0.5524, allocations: 85.92 kB / 0.5025 GB, free: 9.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7974/1.35, allocations: 193.7 MB / 0.6917 GB, free: 49.02 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.084e-06/1.35, allocations: 0 / 0.6917 GB, free: 49.02 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009565/1.351, allocations: 184 kB / 0.6919 GB, free: 48.84 MB / 442.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.03502/1.386, allocations: 9.155 MB / 0.7008 GB, free: 39.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/1.386, allocations: 12.03 kB / 0.7008 GB, free: 39.58 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007701/1.394, allocations: 1.391 MB / 0.7022 GB, free: 38.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06071/1.454, allocations: 16.65 MB / 0.7184 GB, free: 21.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03489/1.489, allocations: 12.51 MB / 0.7306 GB, free: 8.891 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007669/1.49, allocations: 0.6273 MB / 0.7312 GB, free: 8.262 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005587/1.496, allocations: 0.8549 MB / 0.7321 GB, free: 7.406 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7119/2.208, allocations: 19.25 MB / 0.7509 GB, free: 46.27 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006642/2.208, allocations: 116.8 kB / 0.751 GB, free: 46.27 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00307/2.212, allocations: 396.2 kB / 0.7514 GB, free: 46.27 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002264/2.214, allocations: 1.591 MB / 0.7529 GB, free: 46.26 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03705/2.251, allocations: 15.36 MB / 0.7679 GB, free: 46.2 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1201/2.371, allocations: 80.43 MB / 0.8465 GB, free: 12.83 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02053/2.392, allocations: 7.877 MB / 0.8542 GB, free: 10.32 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005455/2.397, allocations: 4.004 MB / 0.8581 GB, free: 8.496 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02427/2.421, allocations: 14.04 MB / 0.8718 GB, free: 0.8008 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.145e-05/2.422, allocations: 70.2 kB / 0.8719 GB, free: 0.7344 MB / 458.8 MB Notification: Performance of pre-optimization done (n=310): time 7.775e-06/2.422, allocations: 0 / 0.8719 GB, free: 0.7344 MB / 458.8 MB Notification: Performance of matching and sorting (n=417): time 0.1425/2.564, allocations: 40.06 MB / 0.911 GB, free: 6.969 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002246/2.564, allocations: 402.7 kB / 0.9114 GB, free: 6.488 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01177/2.576, allocations: 6.493 MB / 0.9177 GB, free: 0.7305 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001114/2.577, allocations: 93.7 kB / 0.9178 GB, free: 0.6328 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.3731/2.95, allocations: 6.04 MB / 0.9237 GB, free: 94.32 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002948/2.953, allocations: 1.51 MB / 0.9252 GB, free: 93.41 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001126/2.955, allocations: 187.2 kB / 0.9253 GB, free: 93.41 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0005199/2.955, allocations: 0.6942 MB / 0.926 GB, free: 93.09 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006185/2.961, allocations: 4.199 MB / 0.9301 GB, free: 93.07 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008386/2.97, allocations: 9.194 MB / 0.9391 GB, free: 86.71 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00913/2.979, allocations: 6.164 MB / 0.9451 GB, free: 86.65 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001747/2.979, allocations: 53.78 kB / 0.9452 GB, free: 86.65 MB / 490.8 MB Notification: Performance of matching and sorting (n=1218) (initialization): time 0.03764/3.017, allocations: 17.47 MB / 0.9622 GB, free: 85.63 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002243/3.017, allocations: 79.97 kB / 0.9623 GB, free: 85.63 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000351/3.017, allocations: 175.8 kB / 0.9625 GB, free: 85.63 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01596/3.033, allocations: 4.902 MB / 0.9673 GB, free: 85.59 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007407/3.041, allocations: 1.973 MB / 0.9692 GB, free: 85.42 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0366/3.077, allocations: 26.45 MB / 0.995 GB, free: 75.92 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008917/3.086, allocations: 0.5419 MB / 0.9955 GB, free: 75.75 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001875/3.088, allocations: 0.5132 MB / 0.996 GB, free: 75.68 MB / 490.8 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 () * 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.002877/3.091, allocations: 0.8143 MB / 0.9968 GB, free: 75.04 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001693/3.093, allocations: 0.7049 MB / 0.9975 GB, free: 74.65 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02474/3.118, allocations: 11.33 MB / 1.009 GB, free: 70.59 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.547e-05/3.118, allocations: 49.34 kB / 1.009 GB, free: 70.59 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.093e-05/3.118, allocations: 24.39 kB / 1.009 GB, free: 70.59 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.729e-05/3.118, allocations: 18.14 kB / 1.009 GB, free: 70.59 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04673/3.165, allocations: 24.71 MB / 1.033 GB, free: 59.64 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001191/3.165, allocations: 12.5 kB / 1.033 GB, free: 59.63 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004167/3.169, allocations: 0.5685 MB / 1.033 GB, free: 59.17 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01903/3.188, allocations: 4.476 MB / 1.038 GB, free: 56.05 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001397/3.189, allocations: 79.38 kB / 1.038 GB, free: 55.97 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04086/3.23, allocations: 23.32 MB / 1.061 GB, free: 36.04 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/3.23, allocations: 8 kB / 1.061 GB, free: 36.03 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02847/3.259, allocations: 18.37 MB / 1.079 GB, free: 19.76 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005169/3.264, allocations: 1.404 MB / 1.08 GB, free: 18.45 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002254/3.266, allocations: 80 kB / 1.08 GB, free: 18.37 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004642/3.271, allocations: 260 kB / 1.08 GB, free: 18.2 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001027/3.272, allocations: 289.4 kB / 1.081 GB, free: 18.02 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003333/3.272, allocations: 113.7 kB / 1.081 GB, free: 17.91 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.009307/3.282, allocations: 4.665 MB / 1.085 GB, free: 13.79 MB / 490.8 MB Notification: Performance of sort global known variables: time 9.42e-07/3.282, allocations: 4 kB / 1.085 GB, free: 13.79 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01604/3.298, allocations: 2.233 MB / 1.087 GB, free: 11.57 MB / 490.8 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 () * 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.4466/3.744, allocations: 20.32 MB / 1.107 GB, free: 82.52 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01953/3.764, allocations: 10.75 MB / 1.118 GB, free: 82.24 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/3.764, allocations: 6.297 kB / 1.118 GB, free: 82.24 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00895/3.773, allocations: 4.592 MB / 1.122 GB, free: 82.01 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008427/3.782, allocations: 1.05 MB / 1.123 GB, free: 81.98 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06592/3.847, allocations: 20.88 MB / 1.144 GB, free: 78.52 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01604/3.864, allocations: 6.569 MB / 1.15 GB, free: 77.59 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0113/3.875, allocations: 2.945 MB / 1.153 GB, free: 77.52 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009017/3.884, allocations: 4.347 MB / 1.157 GB, free: 75.25 MB / 490.8 MB Notification: Performance of SimCode: time 1.803e-06/3.884, allocations: 3.281 kB / 1.157 GB, free: 75.25 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6549/4.539, allocations: 179.5 MB / 1.332 GB, free: 74.3 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001698/4.539, allocations: 187.6 kB / 1.333 GB, free: 74.08 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.599/14.14, allocations: 0 / 1.333 GB, free: 74.08 MB / 0.4949 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat