Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",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.001537/0.001537, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.918/1.918, 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.001093/0.001093, allocations: 84.77 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003932/0.0003934, allocations: 12 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3219, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.4507, allocations: 81.16 MB / 455.8 MB, free: 15.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.4511, allocations: 71.95 kB / 455.9 MB, free: 15.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05954/0.5106, allocations: 12.14 MB / 468 MB, free: 3.324 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.746e-06/0.5107, allocations: 0 / 468 MB, free: 3.324 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.79e-05/0.5107, allocations: 12 kB / 468 MB, free: 3.312 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.004274/0.515, allocations: 1.139 MB / 469.1 MB, free: 2.109 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.5151, allocations: 8.031 kB / 469.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003393/0.5154, allocations: 102.5 kB / 469.3 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002559/0.5157, allocations: 83.06 kB / 469.3 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.5172, allocations: 0.4937 MB / 469.8 MB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.44e-05/0.5172, allocations: 49.3 kB / 469.9 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.5174, allocations: 60 kB / 469.9 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.5199, allocations: 0.6545 MB / 470.6 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.188e-05/0.52, allocations: 0 / 470.6 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.5201, allocations: 28 kB / 470.6 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.5201, allocations: 16 kB / 470.6 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00331/0.5234, allocations: 0.7312 MB / 471.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00706/0.5305, allocations: 2.294 MB / 473.7 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00279/0.5334, allocations: 0.6342 MB / 474.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000112/0.5335, allocations: 16.36 kB / 474.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001687/0.5352, allocations: 453.3 kB / 474.8 MB, free: 12.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.236e-06/0.5353, allocations: 3.938 kB / 474.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1364/0.6717, allocations: 16.54 MB / 491.3 MB, free: 11.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.6719, allocations: 145.5 kB / 491.4 MB, free: 11.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008249/0.6727, allocations: 430 kB / 491.9 MB, free: 11.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000263/0.673, allocations: 49.7 kB / 491.9 MB, free: 10.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003381/0.6733, allocations: 394.4 kB / 492.3 MB, free: 10.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/0.6738, allocations: 311.5 kB / 492.6 MB, free: 10.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.674, allocations: 16 kB / 492.6 MB, free: 10.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.6741, allocations: 354.8 kB / 493 MB, free: 9.902 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003988/0.6781, allocations: 0.7905 MB / 493.8 MB, free: 9.113 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004207/0.6824, allocations: 0.9976 MB / 494.8 MB, free: 8.035 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004156/0.6866, allocations: 0.873 MB / 495.6 MB, free: 7.152 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.6866, allocations: 0 / 495.6 MB, free: 7.152 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.04647/0.7331, allocations: 5.566 MB / 0.4894 GB, free: 1.559 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.763e-05/0.7332, allocations: 64.34 kB / 0.4895 GB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.7333, allocations: 7.984 kB / 0.4895 GB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3429/1.076, allocations: 7.324 MB / 0.4967 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/1.078, allocations: 178.1 kB / 0.4968 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/1.088, allocations: 3.077 MB / 0.4998 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003056/1.091, allocations: 223.1 kB / 0.5001 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001714/1.091, allocations: 45.59 kB / 0.5001 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.0005989/1.092, allocations: 221.3 kB / 0.5003 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/1.092, allocations: 80.22 kB / 0.5004 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04289/1.135, allocations: 5.449 MB / 0.5057 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.306e-05/1.135, allocations: 15.3 kB / 0.5057 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/1.135, allocations: 0 / 0.5057 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-05/1.135, allocations: 8.328 kB / 0.5057 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001982/1.137, allocations: 1.086 MB / 0.5068 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/1.137, allocations: 0 / 0.5068 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/1.138, allocations: 119.5 kB / 0.5069 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06586/1.204, allocations: 7.289 MB / 0.514 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000268/1.204, allocations: 27.97 kB / 0.514 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01153/1.216, allocations: 3.251 MB / 0.5172 GB, free: 97.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.216, allocations: 0 / 0.5172 GB, free: 97.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05396/1.27, allocations: 6.413 MB / 0.5235 GB, free: 90.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/1.27, allocations: 140.2 kB / 0.5236 GB, free: 90.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/1.27, allocations: 19.98 kB / 0.5236 GB, free: 90.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002598/1.273, allocations: 207.9 kB / 0.5238 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003816/1.273, allocations: 104.8 kB / 0.5239 GB, free: 90.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/1.274, allocations: 32.92 kB / 0.524 GB, free: 90.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005065/1.274, allocations: 332.6 kB / 0.5243 GB, free: 90.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.274, allocations: 4 kB / 0.5243 GB, free: 90.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009737/1.275, allocations: 269 kB / 0.5245 GB, free: 89.84 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.04755/1.323, allocations: 7.009 MB / 0.5314 GB, free: 82.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01031/1.333, 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.613e-06/1.333, allocations: 4.125 kB / 0.5335 GB, free: 80.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00811/1.341, allocations: 1.291 MB / 0.5348 GB, free: 79.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/1.342, allocations: 113.6 kB / 0.5349 GB, free: 79.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05842/1.401, allocations: 13.53 MB / 0.5481 GB, free: 65.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/1.401, allocations: 0.9508 MB / 0.549 GB, free: 64.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005582/1.402, allocations: 263.3 kB / 0.5493 GB, free: 64.33 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/1.402, allocations: 4 kB / 0.5493 GB, free: 64.33 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.888/4.29, allocations: 19.15 MB / 0.568 GB, free: 45.25 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat