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.001564/0.001568, allocations: 184.4 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.919/1.919, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001129/0.001129, allocations: 86.92 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.000398, allocations: 8 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3287, allocations: 47.57 MB / 374.6 MB, free: 45.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.4571, allocations: 77.24 MB / 451.9 MB, free: 3.406 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003381/0.4575, allocations: 75.95 kB / 451.9 MB, free: 3.332 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01248/0.47, allocations: 2.752 MB / 454.7 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.47, allocations: 0 / 454.7 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.4701, allocations: 4 kB / 454.7 MB, free: 0.5547 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.0007256/0.4708, allocations: 419.1 kB / 455.1 MB, free: 96 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.4709, allocations: 8.031 kB / 455.1 MB, free: 88 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.575e-05/0.4709, allocations: 46.55 kB / 455.2 MB, free: 32 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.4711, allocations: 19.81 kB / 455.2 MB, free: 12 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.4714, allocations: 202.4 kB / 455.4 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.4714, allocations: 16.17 kB / 455.4 MB, free: 15.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.985e-05/0.4715, allocations: 12 kB / 455.4 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003595/0.4718, allocations: 115.5 kB / 455.5 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.4719, allocations: 0 / 455.5 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.4719, allocations: 4 kB / 455.5 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.4719, allocations: 7.938 kB / 455.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003105/0.4722, allocations: 80.67 kB / 455.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.4734, allocations: 0.6145 MB / 456.2 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004352/0.4739, allocations: 82.62 kB / 456.3 MB, free: 14.76 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.4739, allocations: 0 / 456.3 MB, free: 14.76 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.474, allocations: 38.62 kB / 456.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.442e-06/0.474, allocations: 0 / 456.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.001083/0.4751, allocations: 259.4 kB / 456.6 MB, free: 14.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.4751, allocations: 61.48 kB / 456.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.4753, allocations: 134.8 kB / 456.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.4754, allocations: 29.7 kB / 456.8 MB, free: 14.19 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.4755, allocations: 194.3 kB / 457 MB, free: 14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.226e-05/0.4755, allocations: 23.73 kB / 457 MB, free: 13.97 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.4755, allocations: 0 / 457 MB, free: 13.97 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4757, allocations: 314.8 kB / 457.3 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.4758, allocations: 27.98 kB / 457.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.4759, allocations: 42.56 kB / 457.4 MB, free: 13.58 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.4761, allocations: 27.98 kB / 457.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4761, allocations: 4 kB / 457.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004695/0.4766, allocations: 146.2 kB / 457.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.4766, allocations: 4 kB / 457.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.4766, allocations: 0 / 457.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002683/0.4769, allocations: 40.83 kB / 457.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.477, allocations: 8 kB / 457.6 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/0.4791, allocations: 1.52 MB / 459.2 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001415/0.4792, allocations: 11.89 kB / 459.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.4793, allocations: 11.89 kB / 459.2 MB, free: 11.66 MB / 346.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 (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.0001436/0.4794, allocations: 117.8 kB / 459.3 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.645e-05/0.4795, allocations: 7.906 kB / 459.3 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.536e-05/0.4795, allocations: 16.91 kB / 459.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.4795, allocations: 0 / 459.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.4796, allocations: 7.938 kB / 459.3 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4796, allocations: 3.984 kB / 459.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003003/0.4799, allocations: 209.6 kB / 459.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4799, allocations: 4 kB / 459.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.847e-05/0.48, allocations: 4 kB / 459.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002097/0.4802, allocations: 36.83 kB / 459.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.4802, allocations: 0 / 459.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.482, allocations: 1.518 MB / 461.1 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.482, allocations: 3.953 kB / 461.1 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004976/0.4825, allocations: 220.3 kB / 461.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.749e-05/0.4826, allocations: 88.97 kB / 461.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.999e-05/0.4826, allocations: 0 / 461.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.4828, allocations: 7.984 kB / 461.4 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/0.4829, allocations: 12 kB / 461.4 MB, free: 9.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.4829, allocations: 0 / 461.4 MB, free: 9.188 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001174/0.483, allocations: 114 kB / 461.5 MB, free: 9.078 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.975e-06/0.483, allocations: 3.938 kB / 461.5 MB, free: 9.074 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004674/0.4835, allocations: 47.78 kB / 461.6 MB, free: 9.027 MB / 346.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 () * Number of clocked 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.000787/0.4843, allocations: 0.7522 MB / 462.3 MB, free: 8.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005537/0.4849, allocations: 191.2 kB / 462.5 MB, free: 8.047 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4849, allocations: 4.125 kB / 462.5 MB, free: 8.043 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003255/0.4852, allocations: 154.6 kB / 462.7 MB, free: 7.879 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.4855, allocations: 15.98 kB / 462.7 MB, free: 7.863 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.4876, allocations: 1.123 MB / 463.8 MB, free: 6.668 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/0.488, allocations: 0.716 MB / 464.5 MB, free: 5.926 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.4881, allocations: 39.36 kB / 464.6 MB, free: 5.887 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4881, allocations: 0 / 464.6 MB, free: 5.887 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.51/2.998, allocations: 2.441 MB / 467 MB, free: 3.441 MB / 346.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