Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 196.5 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.479/1.479, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009821/0.0009826, allocations: 88.28 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.604e-05/3.608e-05, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1249, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4315/0.5564, allocations: 98.71 MB / 0.4891 GB, free: 7.039 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/0.5568, allocations: 86.02 kB / 0.4892 GB, free: 6.996 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7169/1.274, allocations: 171.5 MB / 0.6566 GB, free: 72.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.856e-06/1.274, allocations: 3.25 kB / 0.6566 GB, free: 72.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004138/1.274, allocations: 151 kB / 0.6568 GB, free: 72.18 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02415/1.298, allocations: 7.913 MB / 0.6645 GB, free: 67.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.32e-05/1.298, allocations: 7.156 kB / 0.6645 GB, free: 67.18 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005141/1.304, allocations: 1.2 MB / 0.6657 GB, free: 66.38 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06032/1.364, allocations: 16.48 MB / 0.6818 GB, free: 57.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02965/1.394, allocations: 11.41 MB / 0.6929 GB, free: 45.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004651/1.394, allocations: 0.5249 MB / 0.6934 GB, free: 45.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003647/1.398, allocations: 0.7284 MB / 0.6942 GB, free: 44.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03605/1.434, allocations: 16.27 MB / 0.7101 GB, free: 27.26 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005449/1.434, allocations: 115 kB / 0.7102 GB, free: 27.15 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002054/1.436, allocations: 327.9 kB / 0.7105 GB, free: 26.83 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001827/1.438, allocations: 1.492 MB / 0.7119 GB, free: 25.34 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02685/1.465, allocations: 12.73 MB / 0.7244 GB, free: 12.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4722/1.937, allocations: 73.26 MB / 0.7959 GB, free: 50.97 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01809/1.956, allocations: 7.443 MB / 0.8032 GB, free: 50.27 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004981/1.961, allocations: 3.96 MB / 0.807 GB, free: 50.23 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02064/1.981, allocations: 11.51 MB / 0.8183 GB, free: 48.27 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.016e-05/1.981, allocations: 65.3 kB / 0.8183 GB, free: 48.23 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 6.772e-06/1.981, allocations: 3 kB / 0.8183 GB, free: 48.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.14/2.122, allocations: 37.53 MB / 0.855 GB, free: 42.06 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/2.122, allocations: 404.8 kB / 0.8554 GB, free: 41.62 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01473/2.136, allocations: 6.112 MB / 0.8613 GB, free: 39.55 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009435/2.137, allocations: 77.23 kB / 0.8614 GB, free: 39.48 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005213/2.143, allocations: 5.223 MB / 0.8665 GB, free: 35.45 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002107/2.145, allocations: 1.245 MB / 0.8677 GB, free: 34.53 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/2.146, allocations: 166.7 kB / 0.8679 GB, free: 34.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001006/2.147, allocations: 0.664 MB / 0.8685 GB, free: 33.94 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006327/2.154, allocations: 3.722 MB / 0.8722 GB, free: 32.56 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008852/2.162, allocations: 8.396 MB / 0.8804 GB, free: 24.86 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008585/2.171, allocations: 5.49 MB / 0.8857 GB, free: 22.84 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002498/2.171, allocations: 47.22 kB / 0.8858 GB, free: 22.84 MB / 474.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.03885/2.21, allocations: 16.58 MB / 0.902 GB, free: 13.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000264/2.211, allocations: 76 kB / 0.902 GB, free: 13.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003628/2.211, allocations: 160 kB / 0.9022 GB, free: 12.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01834/2.229, allocations: 5.491 MB / 0.9076 GB, free: 9.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008017/2.237, allocations: 1.796 MB / 0.9093 GB, free: 7.602 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4123/2.65, allocations: 28.09 MB / 0.9368 GB, free: 99 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01002/2.66, allocations: 0.5187 MB / 0.9373 GB, free: 99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002272/2.662, allocations: 480.1 kB / 0.9377 GB, free: 99 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.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 (947): * Single equations (assignments): 941 * 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 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002454/2.665, allocations: 0.7416 MB / 0.9384 GB, free: 98.89 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00256/2.667, allocations: 0.6473 MB / 0.9391 GB, free: 98.89 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02522/2.692, allocations: 10.88 MB / 0.9497 GB, free: 98.63 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001005/2.693, allocations: 40.11 kB / 0.9497 GB, free: 98.62 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.246e-05/2.693, allocations: 17.44 kB / 0.9498 GB, free: 98.62 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.346e-05/2.693, allocations: 17.41 kB / 0.9498 GB, free: 98.62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05194/2.745, allocations: 23.89 MB / 0.9731 GB, free: 95.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.065e-05/2.745, allocations: 6.688 kB / 0.9731 GB, free: 95.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002336/2.747, allocations: 442.5 kB / 0.9735 GB, free: 95.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01778/2.765, allocations: 5.083 MB / 0.9785 GB, free: 95.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009908/2.766, allocations: 58.19 kB / 0.9785 GB, free: 95.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03623/2.802, allocations: 26.74 MB / 1.005 GB, free: 83.73 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/2.802, allocations: 17.92 kB / 1.005 GB, free: 83.73 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02896/2.831, allocations: 16.75 MB / 1.021 GB, free: 76.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/2.834, allocations: 0.6689 MB / 1.022 GB, free: 76.41 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002334/2.836, allocations: 64.33 kB / 1.022 GB, free: 76.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004361/2.841, allocations: 258.2 kB / 1.022 GB, free: 76.33 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001009/2.842, allocations: 241.7 kB / 1.022 GB, free: 76.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004367/2.842, allocations: 92.64 kB / 1.022 GB, free: 76.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008797/2.851, allocations: 4.4 MB / 1.027 GB, free: 74.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.71e-07/2.851, allocations: 0 / 1.027 GB, free: 74.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01026/2.861, allocations: 1.971 MB / 1.029 GB, free: 74.61 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02891/2.89, allocations: 18.49 MB / 1.047 GB, free: 65.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0158/2.906, allocations: 9.985 MB / 1.056 GB, free: 57.32 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/2.906, allocations: 0 / 1.056 GB, free: 57.32 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007278/2.913, allocations: 4.433 MB / 1.061 GB, free: 53.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007394/2.921, allocations: 0.9822 MB / 1.062 GB, free: 52.58 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04861/2.97, allocations: 18.14 MB / 1.079 GB, free: 36.88 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009837/2.979, allocations: 5.695 MB / 1.085 GB, free: 31.39 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008331/2.988, allocations: 2.636 MB / 1.087 GB, free: 28.88 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005893/2.994, allocations: 3.752 MB / 1.091 GB, free: 25.13 MB / 490.7 MB Notification: Performance of SimCode: time 1.272e-06/2.994, allocations: 0 / 1.091 GB, free: 25.13 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5934/3.587, allocations: 158.9 MB / 1.246 GB, free: 28.78 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002428/3.587, allocations: 189.2 kB / 1.247 GB, free: 28.55 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.98/12.57, allocations: 0 / 1.247 GB, free: 28.55 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat