Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_cpp_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.002226/0.002231, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.217/2.217, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001171/0.00117, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000601/0.0006016, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1328, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.002586/0.1354, allocations: 1.4 MB / 376 MB, free: 13.94 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.137, allocations: 0.6287 MB / 376.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.1372, allocations: 3.938 kB / 376.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.726e-05/0.1372, allocations: 11.92 kB / 376.7 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.1374, allocations: 31.92 kB / 376.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.1377, allocations: 39.94 kB / 376.8 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002118/0.1379, allocations: 91.8 kB / 376.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.1381, allocations: 21.38 kB / 376.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.736e-05/0.1382, allocations: 47.84 kB / 376.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.1383, allocations: 43.78 kB / 377 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.1383, allocations: 4 kB / 377 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.1385, allocations: 16 kB / 377 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.711e-05/0.1385, allocations: 19.92 kB / 377 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.284e-05/0.1386, allocations: 41.7 kB / 377 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002618/0.1388, allocations: 92.05 kB / 377.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1389, allocations: 0 / 377.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1389, allocations: 0 / 377.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.1389, allocations: 0 / 377.1 MB, free: 12.84 MB / 282.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.0009762/0.1399, allocations: 395.1 kB / 377.5 MB, free: 12.4 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.14, allocations: 12.03 kB / 377.5 MB, free: 12.39 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.439e-05/0.14, allocations: 46.48 kB / 377.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002645/0.1403, allocations: 27.8 kB / 377.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.1406, allocations: 190.9 kB / 377.8 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.1406, allocations: 8.172 kB / 377.8 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.1407, allocations: 12 kB / 377.8 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002745/0.141, allocations: 95.09 kB / 377.9 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.141, allocations: 11.84 kB / 377.9 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.141, allocations: 0 / 377.9 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.1411, allocations: 0 / 377.9 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002151/0.1413, allocations: 64.53 kB / 378 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009891/0.1423, allocations: 448.4 kB / 378.4 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004162/0.1427, allocations: 94.64 kB / 378.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.1428, allocations: 4 kB / 378.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.1428, allocations: 42.5 kB / 378.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.645e-06/0.1428, allocations: 0 / 378.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0021/0.1449, allocations: 0.5349 MB / 379.1 MB, free: 10.63 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.145, allocations: 55.41 kB / 379.1 MB, free: 10.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.1452, allocations: 122.1 kB / 379.2 MB, free: 10.43 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.1452, allocations: 33.7 kB / 379.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.995e-05/0.1453, allocations: 170.3 kB / 379.4 MB, free: 10.23 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.403e-05/0.1454, allocations: 47.36 kB / 379.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.245e-06/0.1454, allocations: 0 / 379.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1456, allocations: 314.8 kB / 379.8 MB, free: 9.863 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.135e-05/0.1457, allocations: 31.92 kB / 379.8 MB, free: 9.832 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.1458, allocations: 59.42 kB / 379.9 MB, free: 9.762 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.1459, allocations: 32 kB / 379.9 MB, free: 9.73 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.146, allocations: 7.938 kB / 379.9 MB, free: 9.723 MB / 282.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003372/0.1463, allocations: 121.5 kB / 380 MB, free: 9.598 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.1463, allocations: 8 kB / 380.1 MB, free: 9.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.1464, allocations: 8.016 kB / 380.1 MB, free: 9.582 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.1464, allocations: 0 / 380.1 MB, free: 9.582 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.1467, allocations: 31.98 kB / 380.1 MB, free: 9.551 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.1467, allocations: 3.938 kB / 380.1 MB, free: 9.547 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.1468, allocations: 12.03 kB / 380.1 MB, free: 9.535 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.1469, allocations: 7.984 kB / 380.1 MB, free: 9.527 MB / 282.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 0.0001344/0.147, allocations: 125.7 kB / 380.2 MB, free: 9.395 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.321e-05/0.1471, allocations: 7.906 kB / 380.2 MB, free: 9.387 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.575e-05/0.1471, allocations: 16.38 kB / 380.3 MB, free: 9.371 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.1472, allocations: 7.953 kB / 380.3 MB, free: 9.363 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1472, allocations: 0 / 380.3 MB, free: 9.363 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1472, allocations: 0 / 380.3 MB, free: 9.363 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008472/0.148, allocations: 432 kB / 380.7 MB, free: 8.879 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1481, allocations: 0 / 380.7 MB, free: 8.879 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003003/0.1484, allocations: 31.94 kB / 380.7 MB, free: 8.848 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.1484, allocations: 4.062 kB / 380.7 MB, free: 8.844 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.1484, allocations: 8 kB / 380.7 MB, free: 8.836 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.1484, allocations: 3.938 kB / 380.7 MB, free: 8.832 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1485, allocations: 0 / 380.7 MB, free: 8.832 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005119/0.149, allocations: 276.5 kB / 381 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.712e-05/0.1491, allocations: 85.02 kB / 381.1 MB, free: 8.426 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.1491, allocations: 0 / 381.1 MB, free: 8.426 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1492, allocations: 8 kB / 381.1 MB, free: 8.418 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.1493, allocations: 11.92 kB / 381.1 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.1493, allocations: 4 kB / 381.1 MB, free: 8.402 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.21e-05/0.1494, allocations: 91.27 kB / 381.2 MB, free: 8.312 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1494, allocations: 0 / 381.2 MB, free: 8.312 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003837/0.1498, allocations: 28 kB / 381.2 MB, free: 8.285 MB / 282.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.0009834/0.1508, allocations: 0.9376 MB / 382.2 MB, free: 7.305 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003212/0.1512, allocations: 83.86 kB / 382.3 MB, free: 7.223 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1512, allocations: 0 / 382.3 MB, free: 7.223 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.1513, allocations: 39.92 kB / 382.3 MB, free: 7.184 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004574/0.1518, allocations: 20.7 kB / 382.3 MB, free: 7.164 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/0.1542, allocations: 1.453 MB / 383.8 MB, free: 5.645 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.1547, allocations: 0.7083 MB / 384.5 MB, free: 4.91 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.1548, allocations: 35.48 kB / 384.5 MB, free: 4.875 MB / 282.7 MB Notification: Performance of SimCode: time 1.472e-06/0.1548, allocations: 0 / 384.5 MB, free: 4.875 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.469/2.624, allocations: 1.93 MB / 386.4 MB, free: 2.945 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat