Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.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.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001454/0.001454, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.2 MB / 245 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009454/0.0009454, allocations: 100.7 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002896/0.0002899, allocations: 4 kB / 358 MB, free: 9.215 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2331, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09692/0.3301, allocations: 79.35 MB / 488.8 MB, free: 11.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.3304, allocations: 71.97 kB / 488.9 MB, free: 11.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008925/0.3393, allocations: 3.027 MB / 491.9 MB, free: 8.113 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3394, allocations: 4 kB / 492 MB, free: 8.109 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.3394, allocations: 3.938 kB / 492 MB, free: 8.105 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005672/0.34, allocations: 426.8 kB / 492.4 MB, free: 7.641 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.864e-05/0.34, allocations: 8.031 kB / 492.4 MB, free: 7.633 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.546e-05/0.3401, allocations: 50.55 kB / 492.4 MB, free: 7.574 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/0.3403, allocations: 31.8 kB / 492.5 MB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/0.3405, allocations: 194.8 kB / 492.6 MB, free: 7.312 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.3405, allocations: 8 kB / 492.7 MB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/0.3405, allocations: 15.94 kB / 492.7 MB, free: 7.289 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.3408, allocations: 117.6 kB / 492.8 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.3408, allocations: 4 kB / 492.8 MB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.3409, allocations: 8 kB / 492.8 MB, free: 7.156 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.3409, allocations: 0 / 492.8 MB, free: 7.156 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002735/0.3412, allocations: 107.8 kB / 492.9 MB, free: 7.051 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008294/0.342, allocations: 499.3 kB / 493.4 MB, free: 6.508 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003713/0.3424, allocations: 130.5 kB / 493.5 MB, free: 6.371 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.3424, allocations: 0 / 493.5 MB, free: 6.371 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.3424, allocations: 34.59 kB / 493.6 MB, free: 6.328 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.3424, allocations: 4 kB / 493.6 MB, free: 6.324 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.00112/0.3436, allocations: 0.5069 MB / 494.1 MB, free: 5.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.3436, allocations: 55.41 kB / 494.1 MB, free: 5.703 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.3437, allocations: 119.2 kB / 494.2 MB, free: 5.578 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.3438, allocations: 29.7 kB / 494.3 MB, free: 5.543 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.182e-05/0.3438, allocations: 112.2 kB / 494.4 MB, free: 5.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.188e-05/0.3439, allocations: 51.3 kB / 494.4 MB, free: 5.379 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.285e-06/0.3439, allocations: 4 kB / 494.4 MB, free: 5.375 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.344, allocations: 330.8 kB / 494.8 MB, free: 5.043 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000186/0.3442, allocations: 47.97 kB / 494.8 MB, free: 4.996 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.3444, allocations: 75.31 kB / 494.9 MB, free: 4.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.3445, allocations: 51.98 kB / 494.9 MB, free: 4.859 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3445, allocations: 4 kB / 494.9 MB, free: 4.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003399/0.3449, allocations: 181.4 kB / 495.1 MB, free: 4.672 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.993e-05/0.3449, allocations: 4 kB / 495.1 MB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.3449, allocations: 0 / 495.1 MB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.015e-05/0.345, allocations: 11.95 kB / 495.1 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/0.3452, allocations: 39.98 kB / 495.2 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.3452, allocations: 3.938 kB / 495.2 MB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.3453, allocations: 16.05 kB / 495.2 MB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.3453, allocations: 8 kB / 495.2 MB, free: 4.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.3455, allocations: 125.8 kB / 495.3 MB, free: 4.457 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.294e-05/0.3455, allocations: 7.906 kB / 495.3 MB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.174e-05/0.3456, allocations: 20.83 kB / 495.3 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3456, allocations: 48 / 495.3 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.3456, allocations: 7.938 kB / 495.3 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.3456, allocations: 0 / 495.3 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006889/0.3463, allocations: 480 kB / 495.8 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-06/0.3463, allocations: 0 / 495.8 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.3465, allocations: 47.98 kB / 495.9 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.3465, allocations: 7.938 kB / 495.9 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.3465, allocations: 4 kB / 495.9 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3465, allocations: 0 / 495.9 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.3465, allocations: 0 / 495.9 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005434/0.3471, allocations: 344.4 kB / 496.2 MB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.22e-05/0.3471, allocations: 88.92 kB / 496.3 MB, free: 3.352 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.3472, allocations: 8 kB / 496.3 MB, free: 3.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.3473, allocations: 12.03 kB / 496.3 MB, free: 3.332 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.3474, allocations: 7.984 kB / 496.3 MB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.3474, allocations: 8 kB / 496.3 MB, free: 3.316 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.58e-05/0.3474, allocations: 98.02 kB / 496.4 MB, free: 3.223 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3474, allocations: 0 / 496.4 MB, free: 3.223 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002775/0.3477, allocations: 36 kB / 496.5 MB, free: 3.188 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (mass.s,mass.v,heatCapacitor.T) * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008348/0.3486, allocations: 1.017 MB / 497.5 MB, free: 2.137 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003084/0.3489, allocations: 123.9 kB / 497.6 MB, free: 2.016 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3489, allocations: 0 / 497.6 MB, free: 2.016 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.3491, allocations: 67.08 kB / 497.7 MB, free: 1.953 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.3493, allocations: 28.12 kB / 497.7 MB, free: 1.926 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.3512, allocations: 1.567 MB / 499.3 MB, free: 292 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.3515, allocations: 0.7238 MB / 500 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.396e-05/0.3516, allocations: 4.656 kB / 500 MB, free: 15.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.764e-05/0.3516, allocations: 43.42 kB / 0.4883 GB, free: 15.49 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3516, allocations: 0 / 0.4883 GB, free: 15.49 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01463/0.3663, allocations: 2.603 MB / 0.4909 GB, free: 13.05 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002018/0.3665, allocations: 189.6 kB / 0.491 GB, free: 12.81 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.551/1.917, allocations: 0 / 0.491 GB, free: 12.81 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat