Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.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.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingResistor",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.0016/0.0016, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.124/2.124, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001176/0.001176, allocations: 101.8 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.196e-05/4.21e-05, allocations: 12 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1093, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4351/0.5445, allocations: 77.15 MB / 446.3 MB, free: 116 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/0.5448, allocations: 67.66 kB / 446.4 MB, free: 80 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01168/0.5565, allocations: 2.744 MB / 449.1 MB, free: 13.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5566, allocations: 0 / 449.1 MB, free: 13.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.5566, allocations: 4 kB / 449.1 MB, free: 13.71 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006663/0.5573, allocations: 412.8 kB / 449.5 MB, free: 13.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/0.5574, allocations: 12.03 kB / 449.6 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.995e-05/0.5575, allocations: 41.56 kB / 449.6 MB, free: 13.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.5576, allocations: 15.81 kB / 449.6 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/0.5579, allocations: 204.9 kB / 449.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.5579, allocations: 12.02 kB / 449.8 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.489e-05/0.558, allocations: 11.81 kB / 449.8 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003034/0.5583, allocations: 115.3 kB / 449.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.5583, allocations: 0 / 449.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.5583, allocations: 7 kB / 450 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.5584, allocations: 0 / 450 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.5586, allocations: 67.19 kB / 450 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.5598, allocations: 0.6147 MB / 450.6 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003927/0.5603, allocations: 78.91 kB / 450.7 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.589e-05/0.5604, allocations: 30.95 kB / 450.7 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.5604, allocations: 4 kB / 450.7 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.5604, allocations: 30.56 kB / 450.8 MB, free: 12.07 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.665e-06/0.5605, allocations: 0 / 450.8 MB, free: 12.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004564/0.5609, allocations: 107.4 kB / 450.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/0.561, allocations: 59.41 kB / 450.9 MB, free: 11.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.5612, allocations: 134.5 kB / 451.1 MB, free: 11.78 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.5612, allocations: 25.7 kB / 451.1 MB, free: 11.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.5614, allocations: 192.6 kB / 451.3 MB, free: 11.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.439e-05/0.5614, allocations: 15.7 kB / 451.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-06/0.5614, allocations: 7.25 kB / 451.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.5616, allocations: 310.8 kB / 451.6 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.179e-05/0.5616, allocations: 18.81 kB / 451.6 MB, free: 11.22 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.681e-05/0.5617, allocations: 41.83 kB / 451.7 MB, free: 11.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.624e-05/0.5618, allocations: 21.48 kB / 451.7 MB, free: 11.17 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5618, allocations: 4 kB / 451.7 MB, free: 11.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003784/0.5622, allocations: 120.3 kB / 451.8 MB, free: 11.06 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.5623, allocations: 7.938 kB / 451.8 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.5623, allocations: 12 kB / 451.8 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002646/0.5626, allocations: 35.52 kB / 451.9 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.5627, allocations: 11.98 kB / 451.9 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/0.5648, allocations: 1.518 MB / 453.4 MB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.565, allocations: 7.953 kB / 453.4 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.565, allocations: 3.438 kB / 453.4 MB, free: 9.438 MB / 330.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.5651, allocations: 117 kB / 453.5 MB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.599e-05/0.5652, allocations: 7.906 kB / 453.5 MB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.846e-05/0.5652, allocations: 19.42 kB / 453.5 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.5653, allocations: 0 / 453.5 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.5653, allocations: 0 / 453.5 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.5653, allocations: 0 / 453.5 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003144/0.5656, allocations: 213.7 kB / 453.8 MB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.5656, allocations: 0 / 453.8 MB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.061e-05/0.5657, allocations: 4 kB / 453.8 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002153/0.5659, allocations: 43.52 kB / 453.8 MB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.5659, allocations: 3.25 kB / 453.8 MB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001857/0.5678, allocations: 1.508 MB / 455.3 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5679, allocations: 0 / 455.3 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004154/0.5683, allocations: 208.5 kB / 455.5 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.167e-05/0.5684, allocations: 84.95 kB / 455.6 MB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.5684, allocations: 8.062 kB / 455.6 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.5686, allocations: 7.984 kB / 455.6 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.599e-05/0.5686, allocations: 7.688 kB / 455.6 MB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.5687, allocations: 0 / 455.6 MB, free: 7.152 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001238/0.5688, allocations: 107 kB / 455.7 MB, free: 7.055 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5688, allocations: 0 / 455.7 MB, free: 7.055 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004815/0.5693, allocations: 39.34 kB / 455.8 MB, free: 7.02 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007719/0.5701, allocations: 0.7435 MB / 456.5 MB, free: 6.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004641/0.5706, allocations: 177.7 kB / 456.7 MB, free: 6.105 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5706, allocations: 3.938 kB / 456.7 MB, free: 6.102 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002749/0.5709, allocations: 157.5 kB / 456.8 MB, free: 5.949 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.5712, allocations: 15.83 kB / 456.9 MB, free: 5.938 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007311/0.5719, allocations: 218 kB / 457.1 MB, free: 5.695 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.5723, allocations: 0.716 MB / 457.8 MB, free: 4.953 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.485e-05/0.5724, allocations: 30.23 kB / 457.8 MB, free: 4.945 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5724, allocations: 0 / 457.8 MB, free: 4.945 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.647/3.219, allocations: 2.45 MB / 460.3 MB, free: 2.52 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingResistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingResistor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat does not exist to compare? outputFormat=mat