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.002029/0.002029, allocations: 177.7 kB / 8.363 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.313/2.313, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001101/0.001101, allocations: 92.12 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.248e-05/2.25e-05, allocations: 0 / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.3905, allocations: 47.58 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.5165, allocations: 76.48 MB / 438.9 MB, free: 9.82 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.5169, allocations: 77.83 kB / 439 MB, free: 9.746 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01153/0.5284, allocations: 2.717 MB / 441.7 MB, free: 7.051 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.5285, allocations: 0 / 441.7 MB, free: 7.051 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.5285, allocations: 0 / 441.7 MB, free: 7.051 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000709/0.5292, allocations: 419.9 kB / 442.1 MB, free: 6.598 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.801e-05/0.5293, allocations: 8.031 kB / 442.1 MB, free: 6.59 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.5295, allocations: 15.81 kB / 442.1 MB, free: 6.574 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.5298, allocations: 194.9 kB / 442.3 MB, free: 6.344 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.5298, allocations: 7.953 kB / 442.3 MB, free: 6.336 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.5299, allocations: 9.094 kB / 442.3 MB, free: 6.328 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002333/0.5301, allocations: 64.41 kB / 442.4 MB, free: 6.266 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002578/0.5304, allocations: 92.25 kB / 442.5 MB, free: 6.172 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.5304, allocations: 0 / 442.5 MB, free: 6.172 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.5304, allocations: 0 / 442.5 MB, free: 6.172 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-06/0.5304, allocations: 4 kB / 442.5 MB, free: 6.168 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.5316, allocations: 0.5747 MB / 443.1 MB, free: 5.527 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.5321, allocations: 78.58 kB / 443.2 MB, free: 5.441 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.929e-05/0.5322, allocations: 24.98 kB / 443.2 MB, free: 5.414 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.5322, allocations: 3.984 kB / 443.2 MB, free: 5.41 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.5322, allocations: 32.31 kB / 443.2 MB, free: 5.371 MB / 331.1 MB Notification: Performance of pre-optimization done (n=6): time 1.973e-06/0.5323, allocations: 0 / 443.2 MB, free: 5.371 MB / 331.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004717/0.5327, allocations: 107.1 kB / 443.3 MB, free: 5.258 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.5328, allocations: 51.41 kB / 443.4 MB, free: 5.195 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.533, allocations: 132.7 kB / 443.5 MB, free: 5.059 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.533, allocations: 25.7 kB / 443.5 MB, free: 5.027 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.5331, allocations: 190.4 kB / 443.7 MB, free: 4.836 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.5332, allocations: 19.7 kB / 443.7 MB, free: 4.816 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-06/0.5332, allocations: 0 / 443.7 MB, free: 4.816 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.5333, allocations: 318.8 kB / 444 MB, free: 4.496 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.561e-05/0.5334, allocations: 16 kB / 444.1 MB, free: 4.48 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.892e-05/0.5335, allocations: 35.33 kB / 444.1 MB, free: 4.438 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.5e-05/0.5336, allocations: 25.72 kB / 444.1 MB, free: 4.414 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.5336, allocations: 0 / 444.1 MB, free: 4.414 MB / 331.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003546/0.5339, allocations: 114.4 kB / 444.2 MB, free: 4.293 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.534, allocations: 9.656 kB / 444.2 MB, free: 4.289 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.534, allocations: 3.938 kB / 444.2 MB, free: 4.285 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002701/0.5343, allocations: 40.83 kB / 444.3 MB, free: 4.242 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.5344, allocations: 8 kB / 444.3 MB, free: 4.234 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001785/0.5362, allocations: 1.448 MB / 445.7 MB, free: 2.672 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.5364, allocations: 11.94 kB / 445.7 MB, free: 2.66 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/0.5364, allocations: 0 / 445.7 MB, free: 2.66 MB / 331.1 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.0001135/0.5365, allocations: 116.9 kB / 445.9 MB, free: 2.539 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003572/0.5369, allocations: 107.7 kB / 446 MB, free: 2.426 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.139e-05/0.537, allocations: 7.906 kB / 446 MB, free: 2.418 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.537, allocations: 12.58 kB / 446 MB, free: 2.406 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.537, allocations: 4 kB / 446 MB, free: 2.402 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.537, allocations: 0 / 446 MB, free: 2.402 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.5371, allocations: 0 / 446 MB, free: 2.402 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002784/0.5373, allocations: 178.2 kB / 446.2 MB, free: 2.191 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.5374, allocations: 4 kB / 446.2 MB, free: 2.188 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.75e-05/0.5374, allocations: 4 kB / 446.2 MB, free: 2.184 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002087/0.5377, allocations: 40.72 kB / 446.2 MB, free: 2.145 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.5377, allocations: 3.984 kB / 446.2 MB, free: 2.141 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/0.5394, allocations: 1.44 MB / 447.7 MB, free: 0.5898 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.5395, allocations: 0 / 447.7 MB, free: 0.5898 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000394/0.5399, allocations: 200.3 kB / 447.9 MB, free: 384 kB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/0.5399, allocations: 89 kB / 447.9 MB, free: 276 kB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.54, allocations: 0 / 447.9 MB, free: 276 kB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.5401, allocations: 8 kB / 447.9 MB, free: 268 kB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.56e-05/0.5402, allocations: 3.984 kB / 447.9 MB, free: 264 kB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.5402, allocations: 4 kB / 448 MB, free: 260 kB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.5404, allocations: 109.7 kB / 448.1 MB, free: 152 kB / 331.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5404, allocations: 0 / 448.1 MB, free: 152 kB / 331.1 MB Notification: Performance of remove unused functions: time 0.0005805/0.541, allocations: 39.91 kB / 448.1 MB, free: 112 kB / 331.1 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.0007618/0.5417, allocations: 0.7331 MB / 448.8 MB, free: 15.34 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0004549/0.5422, allocations: 166.4 kB / 449 MB, free: 15.17 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5422, allocations: 2.438 kB / 449 MB, free: 15.17 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002509/0.5425, allocations: 145.6 kB / 449.1 MB, free: 15.02 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.5428, allocations: 19.89 kB / 449.2 MB, free: 15 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007233/0.5435, allocations: 208.8 kB / 449.4 MB, free: 14.75 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.5439, allocations: 0.7197 MB / 450.1 MB, free: 14 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.042e-05/0.544, allocations: 27.42 kB / 450.1 MB, free: 13.98 MB / 347.1 MB Notification: Performance of SimCode: time 1.493e-06/0.544, allocations: 0 / 450.1 MB, free: 13.98 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.767/3.311, allocations: 2.436 MB / 452.5 MB, free: 11.56 MB / 347.1 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