Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",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.001626/0.001631, allocations: 182.1 kB / 16.4 MB, free: 5.75 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.146/2.146, allocations: 205.4 MB / 222.5 MB, free: 9.102 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.001151/0.001151, allocations: 102.8 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003991/0.0003993, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3361, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001985/0.3382, allocations: 1.269 MB / 375.9 MB, free: 44.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.3392, allocations: 498.8 kB / 376.4 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.481e-05/0.3393, allocations: 2.562 kB / 376.4 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.739e-05/0.3394, allocations: 9.203 kB / 376.4 MB, free: 44.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.585e-05/0.3395, allocations: 35.3 kB / 376.4 MB, free: 44.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.3397, allocations: 20.41 kB / 376.5 MB, free: 44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001254/0.3398, allocations: 75.89 kB / 376.5 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.34, allocations: 23.2 kB / 376.5 MB, free: 43.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.495e-05/0.3401, allocations: 32.36 kB / 376.6 MB, free: 43.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.157e-05/0.3402, allocations: 32.59 kB / 376.6 MB, free: 43.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.3402, allocations: 4.625 kB / 376.6 MB, free: 43.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.752e-05/0.3403, allocations: 11.38 kB / 376.6 MB, free: 43.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.805e-05/0.3403, allocations: 15.33 kB / 376.6 MB, free: 43.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.743e-05/0.3404, allocations: 42.73 kB / 376.7 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.3405, allocations: 75.77 kB / 376.8 MB, free: 43.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.3405, allocations: 1.469 kB / 376.8 MB, free: 43.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3405, allocations: 0 / 376.8 MB, free: 43.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.3406, allocations: 0 / 376.8 MB, free: 43.79 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004774/0.341, allocations: 360.3 kB / 377.1 MB, free: 43.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.3411, allocations: 9.5 kB / 377.1 MB, free: 43.42 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.749e-05/0.3412, allocations: 48.55 kB / 377.2 MB, free: 43.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.3413, allocations: 15.12 kB / 377.2 MB, free: 43.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.3414, allocations: 177 kB / 377.4 MB, free: 43.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.3415, allocations: 7.188 kB / 377.4 MB, free: 43.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.366e-05/0.3415, allocations: 6.281 kB / 377.4 MB, free: 43.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.3417, allocations: 80.48 kB / 377.4 MB, free: 43.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.3418, allocations: 0.875 kB / 377.4 MB, free: 43.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.3418, allocations: 5.188 kB / 377.5 MB, free: 43.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.3418, allocations: 5.516 kB / 377.5 MB, free: 43.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.342, allocations: 55.8 kB / 377.5 MB, free: 43.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008099/0.3428, allocations: 398.9 kB / 377.9 MB, free: 42.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.343, allocations: 73.83 kB / 378 MB, free: 42.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.343, allocations: 1.25 kB / 378 MB, free: 42.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.3431, allocations: 35.47 kB / 378 MB, free: 42.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 4.919e-06/0.3431, allocations: 0 / 378 MB, free: 42.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002707/0.3434, allocations: 87.39 kB / 378.1 MB, free: 42.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.3434, allocations: 52.59 kB / 378.1 MB, free: 42.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.941e-05/0.3435, allocations: 109.5 kB / 378.3 MB, free: 42.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.3435, allocations: 26.86 kB / 378.3 MB, free: 42.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.904e-05/0.3436, allocations: 173.8 kB / 378.5 MB, free: 42.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.3436, allocations: 34.97 kB / 378.5 MB, free: 42.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-06/0.3436, allocations: 5 kB / 378.5 MB, free: 42.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.248e-05/0.3437, allocations: 319.8 kB / 378.8 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.29e-05/0.3438, allocations: 27.7 kB / 378.8 MB, free: 41.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.943e-05/0.3439, allocations: 40.72 kB / 378.9 MB, free: 41.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.996e-05/0.344, allocations: 26.72 kB / 378.9 MB, free: 41.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.344, allocations: 0 / 378.9 MB, free: 41.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002169/0.3442, allocations: 107.5 kB / 379 MB, free: 41.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.3442, allocations: 5.25 kB / 379 MB, free: 41.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.3443, allocations: 1.109 kB / 379 MB, free: 41.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.3443, allocations: 1.062 kB / 379 MB, free: 41.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.3445, allocations: 28.45 kB / 379 MB, free: 41.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.3445, allocations: 8.984 kB / 379 MB, free: 41.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.3446, allocations: 4.625 kB / 379 MB, free: 41.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.3447, allocations: 2.312 kB / 379.1 MB, free: 41.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (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 prepare postOptimizeDAE: time 9.12e-05/0.3448, allocations: 126 kB / 379.2 MB, free: 41.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.437e-05/0.3448, allocations: 7.156 kB / 379.2 MB, free: 41.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.081e-05/0.3449, allocations: 13.48 kB / 379.2 MB, free: 41.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.3449, allocations: 1.219 kB / 379.2 MB, free: 41.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.3449, allocations: 0 / 379.2 MB, free: 41.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3449, allocations: 0 / 379.2 MB, free: 41.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.3451, allocations: 186.8 kB / 379.4 MB, free: 41.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3452, allocations: 3.938 kB / 379.4 MB, free: 41.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.3454, allocations: 16.38 kB / 379.4 MB, free: 41.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.3454, allocations: 1.406 kB / 379.4 MB, free: 41.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.3454, allocations: 8 kB / 379.4 MB, free: 41.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3454, allocations: 5.125 kB / 379.4 MB, free: 41.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3454, allocations: 3.938 kB / 379.4 MB, free: 41.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002578/0.3457, allocations: 195.7 kB / 379.6 MB, free: 41.1 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.925e-05/0.3457, allocations: 81.95 kB / 379.7 MB, free: 41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.001e-05/0.3458, allocations: 5.172 kB / 379.7 MB, free: 41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.581e-05/0.3459, allocations: 10.19 kB / 379.7 MB, free: 40.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.07e-05/0.3459, allocations: 6.062 kB / 379.7 MB, free: 40.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.3459, allocations: 2.219 kB / 379.7 MB, free: 40.99 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.283e-05/0.346, allocations: 87.45 kB / 379.8 MB, free: 40.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.346, allocations: 0 / 379.8 MB, free: 40.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003527/0.3464, allocations: 18.5 kB / 379.8 MB, free: 40.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.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 (8): * Single equations (assignments): 8 * 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.0004452/0.3468, allocations: 0.7248 MB / 380.5 MB, free: 40.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002031/0.347, allocations: 58.2 kB / 380.6 MB, free: 40.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3471, allocations: 0 / 380.6 MB, free: 40.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.762e-05/0.3471, allocations: 27.02 kB / 380.6 MB, free: 40.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.3474, allocations: 6.188 kB / 380.6 MB, free: 40.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.3486, allocations: 0.9265 MB / 381.6 MB, free: 39.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001649/0.3488, allocations: 0.7011 MB / 382.3 MB, free: 38.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.121e-05/0.3489, allocations: 19.19 kB / 382.3 MB, free: 38.54 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.3489, allocations: 1.312 kB / 382.3 MB, free: 38.54 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.414/2.762, allocations: 1.324 MB / 383.6 MB, free: 37.88 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat