Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 92.53 kB / 16.3 MB, free: 5.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 187.2 kB / 17.2 MB, free: 5.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 241.1 MB, free: 14.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.0003221, allocations: 4 kB / 300.8 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1415, allocations: 50.42 MB / 351.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.002137/0.1437, allocations: 1.408 MB / 352.6 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009345/0.1447, allocations: 0.5887 MB / 353.2 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.024e-05/0.1448, allocations: 4 kB / 353.2 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.891e-05/0.1448, allocations: 11.92 kB / 353.2 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001333/0.145, allocations: 31.92 kB / 353.3 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002206/0.1452, allocations: 47.86 kB / 353.3 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.1454, allocations: 87.81 kB / 353.4 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.1455, allocations: 21.39 kB / 353.4 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.428e-05/0.1456, allocations: 39.84 kB / 353.5 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.1457, allocations: 39.84 kB / 353.5 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/0.1457, allocations: 4 kB / 353.5 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.353e-05/0.1458, allocations: 23.98 kB / 353.5 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.525e-05/0.1458, allocations: 15.88 kB / 353.5 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.954e-05/0.1459, allocations: 49.64 kB / 353.6 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.146, allocations: 88.05 kB / 353.7 MB, free: 1.227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.146, allocations: 7.938 kB / 353.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.146, allocations: 0 / 353.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.1461, allocations: 0 / 353.7 MB, free: 1.219 MB / 286.1 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.0006015/0.1467, allocations: 399.1 kB / 354.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.1467, allocations: 8.031 kB / 354.1 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.693e-05/0.1468, allocations: 46.55 kB / 354.1 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.147, allocations: 27.89 kB / 354.2 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/0.1473, allocations: 190.8 kB / 354.3 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.1473, allocations: 8.188 kB / 354.4 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.1473, allocations: 8 kB / 354.4 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.1476, allocations: 91.16 kB / 354.5 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1476, allocations: 0 / 354.5 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.1476, allocations: 7.953 kB / 354.5 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.1476, allocations: 4 kB / 354.5 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.1478, allocations: 60.53 kB / 354.5 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008195/0.1486, allocations: 448.3 kB / 355 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.1489, allocations: 106.6 kB / 355.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.1489, allocations: 0 / 355.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.149, allocations: 34.56 kB / 355.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 9.52e-07/0.149, allocations: 224 / 355.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001358/0.1503, allocations: 0.534 MB / 355.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.602e-05/0.1504, allocations: 55.41 kB / 355.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.1505, allocations: 121.3 kB / 355.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.1505, allocations: 25.7 kB / 355.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.21e-05/0.1506, allocations: 107.9 kB / 355.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.627e-05/0.1507, allocations: 39.45 kB / 356 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-06/0.1507, allocations: 4 kB / 356 MB, free: 14.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1508, allocations: 326.8 kB / 356.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.295e-05/0.1509, allocations: 31.89 kB / 356.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.671e-05/0.151, allocations: 67.36 kB / 356.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.202e-05/0.151, allocations: 28.88 kB / 356.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.151, allocations: 0 / 356.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002013/0.1512, allocations: 133.5 kB / 356.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.1513, allocations: 8 kB / 356.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.1513, allocations: 0 / 356.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1513, allocations: 0 / 356.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.1514, allocations: 39.92 kB / 356.6 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.1515, allocations: 0 / 356.6 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.533e-05/0.1515, allocations: 4 kB / 356.6 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.1515, allocations: 7.938 kB / 356.6 MB, free: 13.99 MB / 302.1 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 0.0001132/0.1517, allocations: 129.8 kB / 356.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/0.1517, allocations: 7.906 kB / 356.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.177e-05/0.1518, allocations: 16.38 kB / 356.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.1518, allocations: 3.938 kB / 356.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1518, allocations: 0 / 356.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1518, allocations: 0 / 356.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005506/0.1523, allocations: 428.1 kB / 357.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.1524, allocations: 3.984 kB / 357.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.1525, allocations: 31.94 kB / 357.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/0.1525, allocations: 4 kB / 357.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.1525, allocations: 3.984 kB / 357.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.1526, allocations: 4 kB / 357.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1526, allocations: 4 kB / 357.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003259/0.1529, allocations: 283.5 kB / 357.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.191e-05/0.153, allocations: 85.02 kB / 357.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.153, allocations: 8.031 kB / 357.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.744e-05/0.1531, allocations: 7.953 kB / 357.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.1531, allocations: 4 kB / 357.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.872e-06/0.1531, allocations: 4 kB / 357.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.599e-05/0.1532, allocations: 99.27 kB / 357.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1532, allocations: 0 / 357.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002596/0.1535, allocations: 24 kB / 357.7 MB, free: 12.73 MB / 302.1 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.0006787/0.1542, allocations: 0.9449 MB / 358.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001784/0.1544, allocations: 83.94 kB / 358.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1544, allocations: 0 / 358.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.666e-05/0.1544, allocations: 40.02 kB / 358.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.1547, allocations: 20.36 kB / 358.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001883/0.1566, allocations: 1.417 MB / 360.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004997/0.1571, allocations: 0.7121 MB / 361 MB, free: 9.391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.011e-05/0.1572, allocations: 12.81 kB / 361 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.481e-05/0.1573, allocations: 23.44 kB / 361 MB, free: 9.352 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1573, allocations: 0 / 361 MB, free: 9.352 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01385/0.1712, allocations: 2.261 MB / 363.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/0.1714, allocations: 189 kB / 363.4 MB, free: 7.012 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/1.808, allocations: 0 / 363.4 MB, free: 7.012 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat