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.001644/0.001644, allocations: 202.2 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009908/0.000991, allocations: 90.42 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.462e-05/2.464e-05, allocations: 4 kB / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1306, allocations: 51.48 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4243/0.555, allocations: 98.05 MB / 493.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003314/0.5554, allocations: 90.09 kB / 493.4 MB, free: 11.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7588/1.314, allocations: 168.6 MB / 0.6465 GB, free: 70.31 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.365e-06/1.314, allocations: 0 / 0.6465 GB, free: 70.31 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007621/1.315, allocations: 154.2 kB / 0.6466 GB, free: 70.3 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.0287/1.344, allocations: 7.902 MB / 0.6543 GB, free: 66.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/1.344, allocations: 10.19 kB / 0.6543 GB, free: 66.71 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06209/1.406, allocations: 16.48 MB / 0.6704 GB, free: 62.42 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0281/1.434, allocations: 11.41 MB / 0.6816 GB, free: 56.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000427/1.435, allocations: 231.3 kB / 0.6818 GB, free: 56.14 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003557/1.438, allocations: 445.9 kB / 0.6822 GB, free: 56.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02012/1.458, allocations: 9.471 MB / 0.6915 GB, free: 48.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03937/1.498, allocations: 14.28 MB / 0.7054 GB, free: 32.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009943/1.499, allocations: 111 kB / 0.7055 GB, free: 32.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004825/1.504, allocations: 40 kB / 0.7056 GB, free: 32.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00308/1.507, allocations: 1.484 MB / 0.707 GB, free: 30.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4309/1.938, allocations: 71.17 MB / 0.7765 GB, free: 43.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007397/1.945, allocations: 5.396 MB / 0.7818 GB, free: 42.57 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004818/1.95, allocations: 3.855 MB / 0.7855 GB, free: 42.53 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001152/1.951, allocations: 0.8346 MB / 0.7864 GB, free: 41.87 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.841e-05/1.951, allocations: 67.91 kB / 0.7864 GB, free: 41.83 MB / 458.7 MB Notification: Performance of pre-optimization done (n=287): time 1.322e-05/1.951, allocations: 2.469 kB / 0.7864 GB, free: 41.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=347): time 0.1062/2.058, allocations: 40.02 MB / 0.8255 GB, free: 33.68 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/2.058, allocations: 396.8 kB / 0.8259 GB, free: 33.24 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009721/2.068, allocations: 5.396 MB / 0.8312 GB, free: 31.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000806/2.068, allocations: 25.7 kB / 0.8312 GB, free: 31.33 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003903/2.072, allocations: 5.261 MB / 0.8363 GB, free: 27.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001908/2.074, allocations: 1.234 MB / 0.8375 GB, free: 26.47 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/2.075, allocations: 0 / 0.8375 GB, free: 26.47 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008728/2.076, allocations: 0.6638 MB / 0.8382 GB, free: 26.01 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005272/2.082, allocations: 3.629 MB / 0.8417 GB, free: 24.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008136/2.09, allocations: 8.4 MB / 0.8499 GB, free: 16.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007813/2.098, allocations: 5.408 MB / 0.8552 GB, free: 14.86 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001952/2.098, allocations: 49.16 kB / 0.8552 GB, free: 14.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=1115) (initialization): time 0.03409/2.132, allocations: 15.62 MB / 0.8705 GB, free: 9.016 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002131/2.132, allocations: 76 kB / 0.8706 GB, free: 8.941 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003142/2.133, allocations: 168 kB / 0.8707 GB, free: 8.777 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01557/2.148, allocations: 5.365 MB / 0.876 GB, free: 5.082 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006919/2.155, allocations: 1.858 MB / 0.8778 GB, free: 3.469 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04032/2.195, allocations: 26.01 MB / 0.9032 GB, free: 12.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008352/2.204, allocations: 372.2 kB / 0.9035 GB, free: 12.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002343/2.206, allocations: 499.3 kB / 0.904 GB, free: 12.2 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 764 * 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 (979): * Single equations (assignments): 973 * 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,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003376/2.21, allocations: 0.5389 MB / 0.9046 GB, free: 11.66 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02465/2.234, allocations: 10.52 MB / 0.9148 GB, free: 3.363 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002033/2.236, allocations: 0.6132 MB / 0.9154 GB, free: 2.742 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3778/2.614, allocations: 10.66 MB / 0.9258 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001123/2.614, allocations: 40.83 kB / 0.9259 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.569e-05/2.614, allocations: 20.91 kB / 0.9259 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001214/2.615, allocations: 14.25 kB / 0.9259 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06984/2.684, allocations: 22.79 MB / 0.9482 GB, free: 99.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.002e-05/2.685, allocations: 6.625 kB / 0.9482 GB, free: 99.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003491/2.688, allocations: 452.5 kB / 0.9486 GB, free: 99.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02607/2.714, allocations: 5.019 MB / 0.9535 GB, free: 99.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009194/2.715, allocations: 14.06 kB / 0.9535 GB, free: 99.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0563/2.771, allocations: 24.68 MB / 0.9776 GB, free: 89.78 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.035e-05/2.771, allocations: 9.656 kB / 0.9776 GB, free: 89.78 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03534/2.807, allocations: 16.51 MB / 0.9938 GB, free: 83.14 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002159/2.809, allocations: 0.6216 MB / 0.9944 GB, free: 83.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002256/2.811, allocations: 14.11 kB / 0.9944 GB, free: 83.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004689/2.816, allocations: 201.1 kB / 0.9946 GB, free: 83.02 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001402/2.817, allocations: 245.9 kB / 0.9948 GB, free: 82.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007441/2.818, allocations: 94.47 kB / 0.9949 GB, free: 82.96 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009786/2.828, allocations: 3.763 MB / 0.9986 GB, free: 81.62 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.02e-07/2.828, allocations: 0 / 0.9986 GB, free: 81.62 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01115/2.839, allocations: 1.734 MB / 1 GB, free: 81.62 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 (222): * Single equations (assignments): 216 * 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.03009/2.869, allocations: 18.27 MB / 1.018 GB, free: 73.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01667/2.886, allocations: 9.623 MB / 1.027 GB, free: 69.56 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/2.886, allocations: 2.594 kB / 1.027 GB, free: 69.56 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007458/2.894, allocations: 4.321 MB / 1.032 GB, free: 66.84 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006061/2.9, allocations: 0.852 MB / 1.033 GB, free: 66.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04853/2.948, allocations: 17.78 MB / 1.05 GB, free: 50.83 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01183/2.96, allocations: 5.688 MB / 1.055 GB, free: 46.71 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008942/2.969, allocations: 2.705 MB / 1.058 GB, free: 45 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006751/2.976, allocations: 3.749 MB / 1.062 GB, free: 41.51 MB / 490.7 MB Notification: Performance of SimCode: time 1.313e-06/2.976, allocations: 0 / 1.062 GB, free: 41.51 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5187/3.495, allocations: 149.2 MB / 1.207 GB, free: 52.46 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001885/3.495, allocations: 144.5 kB / 1.208 GB, free: 52.27 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.298/11.79, allocations: 0 / 1.208 GB, free: 52.27 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