Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001383/0.001383, allocations: 177 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007942/0.0007941, allocations: 78.7 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.884e-05/1.886e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.09378, allocations: 47.58 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3141/0.4079, allocations: 80.68 MB / 443.8 MB, free: 14.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.4082, allocations: 66.84 kB / 443.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03315/0.4414, allocations: 11.98 MB / 455.9 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4414, allocations: 0 / 455.9 MB, free: 4.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.971e-05/0.4415, allocations: 16 kB / 455.9 MB, free: 4.645 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002166/0.4436, allocations: 1.049 MB / 456.9 MB, free: 3.586 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.4437, allocations: 8.031 kB / 457 MB, free: 3.578 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.4439, allocations: 86.97 kB / 457 MB, free: 3.492 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007932/0.4447, allocations: 498.6 kB / 457.5 MB, free: 3.027 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.4447, allocations: 28.67 kB / 457.6 MB, free: 3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.672e-05/0.4448, allocations: 38.94 kB / 457.6 MB, free: 2.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008131/0.4456, allocations: 0.4973 MB / 458.1 MB, free: 2.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008202/0.4464, allocations: 477.9 kB / 458.6 MB, free: 2.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.4465, allocations: 0 / 458.6 MB, free: 2.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.979e-05/0.4465, allocations: 0 / 458.6 MB, free: 2.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.4465, allocations: 16 kB / 458.6 MB, free: 2.305 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003444/0.45, allocations: 2.193 MB / 460.8 MB, free: 468 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007369/0.4508, allocations: 438.2 kB / 461.2 MB, free: 204 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/0.4511, allocations: 245.6 kB / 461.4 MB, free: 56 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.215e-05/0.4511, allocations: 12.42 kB / 461.4 MB, free: 44 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000531/0.4517, allocations: 330.2 kB / 461.8 MB, free: 15.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 2.204e-06/0.4517, allocations: 0 / 461.8 MB, free: 15.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.05824/0.5099, allocations: 13.79 MB / 475.6 MB, free: 3.168 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.5101, allocations: 141.3 kB / 475.7 MB, free: 3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006417/0.5108, allocations: 389.3 kB / 476.1 MB, free: 2.699 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002192/0.511, allocations: 33.58 kB / 476.1 MB, free: 2.664 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002753/0.5113, allocations: 363.2 kB / 476.5 MB, free: 2.398 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002858/0.5116, allocations: 301.8 kB / 476.8 MB, free: 2.137 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.475e-05/0.5116, allocations: 0 / 476.8 MB, free: 2.137 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.5118, allocations: 381.7 kB / 477.1 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007044/0.5125, allocations: 454.5 kB / 477.6 MB, free: 1.547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000828/0.5134, allocations: 0.6456 MB / 478.2 MB, free: 1.051 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001807/0.5152, allocations: 0.6861 MB / 478.9 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.5152, allocations: 0 / 478.9 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02098/0.5362, allocations: 4.873 MB / 483.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.395e-05/0.5363, allocations: 63.39 kB / 483.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.5364, allocations: 8 kB / 483.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02148/0.5579, allocations: 4.794 MB / 488.6 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007823/0.5587, allocations: 175.7 kB / 488.8 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005749/0.5644, allocations: 3.071 MB / 491.9 MB, free: 4.262 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.5663, allocations: 203.7 kB / 492.1 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.5664, allocations: 48.03 kB / 492.1 MB, free: 4.016 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: T1.vcb:DUMMY_STATE(unit = "V" ) "Collector-base voltage" type: Real T2.vcb:DUMMY_STATE(unit = "V" ) "Collector-base voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vcb:DUMMY_DER(fixed = false ) "Collector-base voltage" type: Real $DER.T1.veb:DUMMY_DER(fixed = false ) "Emitter-base voltage" type: Real $DER.T1.vcb:DUMMY_DER(fixed = false ) "Collector-base voltage" type: Real $DER.T2.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real $DER.T1.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real 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 () * 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.0003785/0.5668, allocations: 138.9 kB / 492.3 MB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02004/0.5868, allocations: 4.648 MB / 496.9 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003896/0.5873, allocations: 75.06 kB / 497 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02037/0.6076, allocations: 4.774 MB / 0.49 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.898e-05/0.6077, allocations: 15.95 kB / 0.49 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.6077, allocations: 256 / 0.49 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.904e-05/0.6078, allocations: 3.984 kB / 0.49 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/0.6094, allocations: 1.021 MB / 0.491 GB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.6094, allocations: 0 / 0.491 GB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000583/0.61, allocations: 131.8 kB / 0.4911 GB, free: 9.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02166/0.6317, allocations: 4.804 MB / 0.4958 GB, free: 4.301 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002248/0.632, allocations: 15.97 kB / 0.4959 GB, free: 4.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005478/0.6374, allocations: 3.064 MB / 0.4988 GB, free: 1.168 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.6375, allocations: 4 kB / 0.4989 GB, free: 1.164 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02109/0.6586, allocations: 5.413 MB / 0.5041 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002437/0.6589, allocations: 136.2 kB / 0.5043 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.659, allocations: 7.984 kB / 0.5043 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001378/0.6604, allocations: 191.9 kB / 0.5045 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/0.6607, allocations: 104.6 kB / 0.5046 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.178e-05/0.6608, allocations: 39.91 kB / 0.5046 GB, free: 11.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003481/0.6611, allocations: 294.9 kB / 0.5049 GB, free: 10.95 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6611, allocations: 4 kB / 0.5049 GB, free: 10.94 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00076/0.6619, allocations: 228 kB / 0.5051 GB, free: 10.72 MB / 394.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) * 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.02154/0.6835, allocations: 5.996 MB / 0.511 GB, free: 4.688 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003425/0.6869, allocations: 1.448 MB / 0.5124 GB, free: 3.211 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.687, allocations: 0 / 0.5124 GB, free: 3.211 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002215/0.6892, allocations: 0.7981 MB / 0.5131 GB, free: 2.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007219/0.6899, allocations: 89.98 kB / 0.5132 GB, free: 2.324 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002981/0.6929, allocations: 1.272 MB / 0.5145 GB, free: 1.008 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005593/0.6935, allocations: 0.9584 MB / 0.5154 GB, free: 20 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002941/0.6938, allocations: 50.05 kB / 0.5155 GB, free: 15.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003214/0.6941, allocations: 263.3 kB / 0.5157 GB, free: 15.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.158e-05/0.6942, allocations: 0 / 0.5157 GB, free: 15.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2365/0.9307, allocations: 25.47 MB / 0.5406 GB, free: 137.6 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001417/0.9309, allocations: 146.4 kB / 0.5407 GB, free: 137.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.859/3.79, allocations: 4.625 kB / 0.5407 GB, free: 137.4 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat