Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 181.3 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009312/0.0009312, allocations: 96.09 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002421/0.0002421, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2493, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09591/0.3452, allocations: 77.09 MB / 453 MB, free: 3.559 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.3455, allocations: 75.89 kB / 453.1 MB, free: 3.484 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006951/0.3525, allocations: 2.569 MB / 455.6 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3525, allocations: 0 / 455.6 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.3525, allocations: 8 kB / 455.6 MB, free: 0.9023 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0004684/0.353, allocations: 403.4 kB / 456 MB, free: 468 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.353, allocations: 8.031 kB / 456 MB, free: 460 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.394e-05/0.3531, allocations: 42.56 kB / 456.1 MB, free: 408 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001677/0.3533, allocations: 27.88 kB / 456.1 MB, free: 380 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.3535, allocations: 186.9 kB / 456.3 MB, free: 152 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.3535, allocations: 12.19 kB / 456.3 MB, free: 140 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.317e-05/0.3536, allocations: 15.89 kB / 456.3 MB, free: 124 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/0.3538, allocations: 91.66 kB / 456.4 MB, free: 28 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.3538, allocations: 4 kB / 456.4 MB, free: 24 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.3538, allocations: 4 kB / 456.4 MB, free: 20 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3538, allocations: 0 / 456.4 MB, free: 20 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001457/0.354, allocations: 72.02 kB / 456.5 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006921/0.3547, allocations: 445.4 kB / 456.9 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.3549, allocations: 98.64 kB / 457 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.292e-05/0.355, allocations: 4 kB / 457 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.355, allocations: 34.5 kB / 457.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.355, allocations: 4 kB / 457.1 MB, free: 15.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.001286/0.3563, allocations: 0.5341 MB / 457.6 MB, free: 14.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.3564, allocations: 59.36 kB / 457.7 MB, free: 14.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.032e-05/0.3565, allocations: 109.2 kB / 457.8 MB, free: 14.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.3565, allocations: 25.7 kB / 457.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.67e-05/0.3565, allocations: 103.9 kB / 457.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.652e-05/0.3566, allocations: 51.28 kB / 457.9 MB, free: 14.33 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-06/0.3566, allocations: 8 kB / 458 MB, free: 14.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.3567, allocations: 318.8 kB / 458.3 MB, free: 14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.243e-05/0.3568, allocations: 31.98 kB / 458.3 MB, free: 13.97 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.063e-05/0.3569, allocations: 55.42 kB / 458.3 MB, free: 13.9 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.197e-05/0.3569, allocations: 32 kB / 458.4 MB, free: 13.87 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.357, allocations: 3.938 kB / 458.4 MB, free: 13.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001787/0.3571, allocations: 129.5 kB / 458.5 MB, free: 13.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.3572, allocations: 12.06 kB / 458.5 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.3572, allocations: 0 / 458.5 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3572, allocations: 4 kB / 458.5 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.3573, allocations: 31.98 kB / 458.6 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.3574, allocations: 3.938 kB / 458.6 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.961e-05/0.3574, allocations: 11.95 kB / 458.6 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.3575, allocations: 4 kB / 458.6 MB, free: 13.67 MB / 346.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 (17): * Single equations (assignments): 17 * 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 9.573e-05/0.3576, allocations: 117.8 kB / 458.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.287e-05/0.3576, allocations: 11.89 kB / 458.7 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.404e-05/0.3576, allocations: 20.42 kB / 458.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.3577, allocations: 3.984 kB / 458.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3577, allocations: 0 / 458.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3577, allocations: 4 kB / 458.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005246/0.3582, allocations: 427.9 kB / 459.1 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.3582, allocations: 4.062 kB / 459.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001458/0.3584, allocations: 27.98 kB / 459.2 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.3584, allocations: 4 kB / 459.2 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.3584, allocations: 4 kB / 459.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/0.3584, allocations: 19.8 kB / 459.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3584, allocations: 4 kB / 459.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.3587, allocations: 263.1 kB / 459.5 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.853e-05/0.3587, allocations: 88.97 kB / 459.6 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.925e-05/0.3588, allocations: 4.047 kB / 459.6 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.82e-05/0.3589, allocations: 3.984 kB / 459.6 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.922e-05/0.3589, allocations: 11.94 kB / 459.6 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.842e-06/0.3589, allocations: 4 kB / 459.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.834e-05/0.359, allocations: 93.39 kB / 459.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.359, allocations: 4 kB / 459.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002385/0.3592, allocations: 28 kB / 459.7 MB, free: 12.42 MB / 346.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 (12): * Single equations (assignments): 12 * 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.0005493/0.3598, allocations: 0.9408 MB / 460.6 MB, free: 11.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001815/0.36, allocations: 79.95 kB / 460.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.36, allocations: 0 / 460.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.915e-05/0.36, allocations: 43.92 kB / 460.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.3603, allocations: 15.98 kB / 460.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.3619, allocations: 1.418 MB / 462.2 MB, free: 9.828 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.3622, allocations: 0.7046 MB / 462.9 MB, free: 9.098 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.729e-05/0.3623, allocations: 12.88 kB / 462.9 MB, free: 9.082 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.564e-05/0.3623, allocations: 27.48 kB / 462.9 MB, free: 9.055 MB / 346.7 MB Notification: Performance of SimCode: time 7.11e-07/0.3624, allocations: 3.938 kB / 462.9 MB, free: 9.051 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01277/0.3751, allocations: 2.259 MB / 465.2 MB, free: 6.824 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/0.3754, allocations: 193.7 kB / 465.4 MB, free: 6.578 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.67/2.046, allocations: 0 / 465.4 MB, free: 6.578 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat