Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.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.ControlledTemperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",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.00239/0.00239, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001143, allocations: 93.62 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.174e-05/2.172e-05, allocations: 0 / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3908/0.3908, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2005/0.5914, allocations: 77.56 MB / 440 MB, free: 8.66 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003497/0.5918, allocations: 71.95 kB / 440.1 MB, free: 8.59 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02216/0.614, allocations: 3.824 MB / 443.9 MB, free: 4.793 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.614, allocations: 0 / 443.9 MB, free: 4.793 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.721e-05/0.6141, allocations: 4 kB / 443.9 MB, free: 4.789 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.00151/0.6156, allocations: 0.5012 MB / 444.4 MB, free: 4.246 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.743e-05/0.6157, allocations: 12.03 kB / 444.4 MB, free: 4.234 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.6159, allocations: 27.7 kB / 444.4 MB, free: 4.207 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004999/0.6165, allocations: 222.4 kB / 444.6 MB, free: 3.953 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.6165, allocations: 11.95 kB / 444.6 MB, free: 3.941 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.942e-05/0.6166, allocations: 12 kB / 444.7 MB, free: 3.93 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005513/0.6172, allocations: 112.9 kB / 444.8 MB, free: 3.82 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006451/0.6178, allocations: 182.1 kB / 444.9 MB, free: 3.629 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.6179, allocations: 0 / 444.9 MB, free: 3.629 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.299e-05/0.618, allocations: 0.875 kB / 444.9 MB, free: 3.629 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.618, allocations: 12 kB / 445 MB, free: 3.617 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002605/0.6206, allocations: 0.7617 MB / 445.7 MB, free: 2.797 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006301/0.6213, allocations: 140.2 kB / 445.9 MB, free: 2.652 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.6216, allocations: 66.58 kB / 445.9 MB, free: 2.586 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.17e-05/0.6216, allocations: 4 kB / 445.9 MB, free: 2.582 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.526e-05/0.6217, allocations: 30.56 kB / 446 MB, free: 2.543 MB / 331.1 MB Notification: Performance of pre-optimization done (n=16): time 4.519e-06/0.6217, allocations: 0 / 446 MB, free: 2.543 MB / 331.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007712/0.6225, allocations: 151.2 kB / 446.1 MB, free: 2.387 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.6226, allocations: 57.53 kB / 446.2 MB, free: 2.32 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.6228, allocations: 133.4 kB / 446.3 MB, free: 2.184 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 4.316e-05/0.6229, allocations: 29.7 kB / 446.3 MB, free: 2.148 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.6231, allocations: 210.7 kB / 446.5 MB, free: 1.941 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.316e-05/0.6232, allocations: 55.19 kB / 446.6 MB, free: 1.887 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.751e-05/0.6233, allocations: 0 / 446.6 MB, free: 1.887 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.6235, allocations: 319.8 kB / 446.9 MB, free: 1.566 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.6237, allocations: 36.38 kB / 446.9 MB, free: 1.531 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.6239, allocations: 67.98 kB / 447 MB, free: 1.453 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.6241, allocations: 49.11 kB / 447 MB, free: 1.406 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.6241, allocations: 0 / 447 MB, free: 1.406 MB / 331.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007105/0.6248, allocations: 158.9 kB / 447.2 MB, free: 1.242 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/0.6249, allocations: 8.094 kB / 447.2 MB, free: 1.234 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.6249, allocations: 4 kB / 447.2 MB, free: 1.23 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003068/0.6252, allocations: 29.33 kB / 447.2 MB, free: 1.199 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003604/0.6256, allocations: 43.91 kB / 447.3 MB, free: 1.156 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/0.6278, allocations: 1.306 MB / 448.6 MB, free: 15.73 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004486/0.6283, allocations: 31.91 kB / 448.6 MB, free: 15.7 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.6283, allocations: 8.062 kB / 448.6 MB, free: 15.7 MB / 347.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: 2 ($PRE.onOffController.y,onOffController.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001826/0.6285, allocations: 116.8 kB / 448.7 MB, free: 15.57 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006328/0.6292, allocations: 146.2 kB / 448.9 MB, free: 15.43 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.995e-05/0.6293, allocations: 15.81 kB / 448.9 MB, free: 15.41 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.421e-05/0.6294, allocations: 12.75 kB / 448.9 MB, free: 15.4 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.6294, allocations: 7.953 kB / 448.9 MB, free: 15.39 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.6294, allocations: 0 / 448.9 MB, free: 15.39 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.6294, allocations: 0 / 448.9 MB, free: 15.39 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00134/0.6308, allocations: 455.6 kB / 449.4 MB, free: 14.9 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/0.6309, allocations: 4 kB / 449.4 MB, free: 14.89 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003649/0.6312, allocations: 23.98 kB / 449.4 MB, free: 14.87 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002366/0.6315, allocations: 28.83 kB / 449.4 MB, free: 14.84 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.6316, allocations: 8 kB / 449.4 MB, free: 14.83 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001999/0.6336, allocations: 1.299 MB / 450.7 MB, free: 13.42 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.058e-05/0.6336, allocations: 4.031 kB / 450.7 MB, free: 13.41 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008898/0.6345, allocations: 306.7 kB / 451 MB, free: 13.1 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001988/0.6348, allocations: 97.02 kB / 451.1 MB, free: 12.98 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.217e-05/0.6348, allocations: 2.062 kB / 451.1 MB, free: 12.98 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000444/0.6353, allocations: 25.61 kB / 451.2 MB, free: 12.96 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.6354, allocations: 20.03 kB / 451.2 MB, free: 12.94 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.6355, allocations: 4 kB / 451.2 MB, free: 12.94 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001667/0.6356, allocations: 114.3 kB / 451.3 MB, free: 12.83 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6357, allocations: 0 / 451.3 MB, free: 12.83 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007949/0.6365, allocations: 59.69 kB / 451.3 MB, free: 12.77 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001355/0.6379, allocations: 0.8242 MB / 452.2 MB, free: 11.92 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0007151/0.6386, allocations: 229.4 kB / 452.4 MB, free: 11.68 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.6387, allocations: 0 / 452.4 MB, free: 11.68 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003912/0.6391, allocations: 169.5 kB / 452.6 MB, free: 11.51 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005399/0.6396, allocations: 24.19 kB / 452.6 MB, free: 11.49 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.6413, allocations: 354 kB / 452.9 MB, free: 11.1 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005437/0.6418, allocations: 0.7397 MB / 453.7 MB, free: 10.34 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.6421, allocations: 55.42 kB / 453.7 MB, free: 10.28 MB / 347.1 MB Notification: Performance of SimCode: time 1.443e-06/0.6421, allocations: 0 / 453.7 MB, free: 10.28 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.744/3.386, allocations: 3.828 MB / 457.6 MB, free: 6.48 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat does not exist to compare? outputFormat=mat