Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",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.001495/0.001495, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.141 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.001113/0.001113, allocations: 95.48 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003972/0.0003971, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3508, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1296/0.4804, allocations: 81.17 MB / 455.8 MB, free: 15.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.4808, allocations: 79.95 kB / 455.9 MB, free: 15.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0592/0.54, allocations: 12.09 MB / 468 MB, free: 3.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.387e-06/0.5401, allocations: 0 / 468 MB, free: 3.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.865e-05/0.5401, allocations: 16 kB / 468 MB, free: 3.234 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.004711/0.5449, allocations: 1.135 MB / 469.1 MB, free: 2.035 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/0.5449, allocations: 8.031 kB / 469.1 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003793/0.5453, allocations: 110.5 kB / 469.2 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002787/0.5456, allocations: 83.06 kB / 469.3 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001656/0.5473, allocations: 0.4937 MB / 469.8 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-05/0.5474, allocations: 45.31 kB / 469.9 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002047/0.5476, allocations: 64 kB / 469.9 MB, free: 1.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002637/0.5503, allocations: 0.6467 MB / 470.6 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.967e-05/0.5504, allocations: 4 kB / 470.6 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.5505, allocations: 27.98 kB / 470.6 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.5505, allocations: 15.94 kB / 470.6 MB, free: 496 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003621/0.5541, allocations: 0.739 MB / 471.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007839/0.562, allocations: 2.287 MB / 473.6 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002965/0.5651, allocations: 0.639 MB / 474.3 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001119/0.5652, allocations: 8.422 kB / 474.3 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001879/0.5671, allocations: 457.3 kB / 474.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 4.278e-06/0.5672, allocations: 3.938 kB / 474.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1387/0.7058, allocations: 16.53 MB / 491.3 MB, free: 11.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.706, allocations: 149.5 kB / 491.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008583/0.7069, allocations: 430 kB / 491.8 MB, free: 10.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002559/0.7072, allocations: 45.7 kB / 491.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003568/0.7075, allocations: 394.4 kB / 492.3 MB, free: 10.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004404/0.708, allocations: 307.5 kB / 492.6 MB, free: 10.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.7082, allocations: 20 kB / 492.6 MB, free: 10.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.7083, allocations: 350.8 kB / 492.9 MB, free: 9.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004002/0.7124, allocations: 0.7866 MB / 493.7 MB, free: 9.055 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004198/0.7166, allocations: 1.013 MB / 494.7 MB, free: 7.961 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004038/0.7207, allocations: 0.8691 MB / 495.6 MB, free: 7.082 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.7207, allocations: 4 kB / 495.6 MB, free: 7.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.04586/0.7666, allocations: 5.555 MB / 0.4894 GB, free: 1.496 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.615e-05/0.7667, allocations: 67.53 kB / 0.4895 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/0.7668, allocations: 8 kB / 0.4895 GB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3752/1.142, allocations: 7.322 MB / 0.4966 GB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001882/1.144, allocations: 179.9 kB / 0.4968 GB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/1.158, allocations: 3.06 MB / 0.4998 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004517/1.163, allocations: 229.3 kB / 0.5 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003182/1.163, allocations: 44.8 kB / 0.5 GB, free: 105.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0009019/1.164, allocations: 213.1 kB / 0.5002 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003725/1.165, allocations: 78.81 kB / 0.5003 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05472/1.219, allocations: 5.461 MB / 0.5057 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.342e-05/1.219, allocations: 15.77 kB / 0.5057 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.769e-06/1.219, allocations: 0 / 0.5057 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.497e-05/1.219, allocations: 7.891 kB / 0.5057 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/1.221, allocations: 1.074 MB / 0.5067 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/1.221, allocations: 0.5625 kB / 0.5067 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001459/1.223, allocations: 129.6 kB / 0.5069 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0664/1.289, allocations: 7.29 MB / 0.514 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000269/1.29, allocations: 27.97 kB / 0.514 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01097/1.301, allocations: 3.23 MB / 0.5172 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.301, allocations: 7.5 kB / 0.5172 GB, free: 97.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04643/1.347, allocations: 6.421 MB / 0.5234 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/1.347, allocations: 136.2 kB / 0.5236 GB, free: 90.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002884/1.348, allocations: 23.98 kB / 0.5236 GB, free: 90.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002691/1.35, allocations: 213.4 kB / 0.5238 GB, free: 90.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004025/1.351, allocations: 106.1 kB / 0.5239 GB, free: 90.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/1.351, allocations: 31.98 kB / 0.5239 GB, free: 90.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004994/1.352, allocations: 326.9 kB / 0.5242 GB, free: 90.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.352, allocations: 0 / 0.5242 GB, free: 90.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001015/1.353, allocations: 270.6 kB / 0.5245 GB, free: 89.83 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.04772/1.4, allocations: 7.009 MB / 0.5313 GB, free: 82.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01023/1.411, allocations: 2.177 MB / 0.5335 GB, free: 80.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/1.411, allocations: 0 / 0.5335 GB, free: 80.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007978/1.419, allocations: 1.291 MB / 0.5347 GB, free: 79.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009001/1.42, allocations: 104.7 kB / 0.5348 GB, free: 79.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0564/1.476, allocations: 13.56 MB / 0.5481 GB, free: 65.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/1.476, allocations: 0.9547 MB / 0.549 GB, free: 64.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005325/1.477, allocations: 259.3 kB / 0.5492 GB, free: 64.32 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/1.477, allocations: 0 / 0.5492 GB, free: 64.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.927/4.404, allocations: 19.27 MB / 0.5681 GB, free: 45.12 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat