Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009544/0.0009545, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009401/0.0009402, allocations: 106 kB / 281.2 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.13e-05/2.119e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08989/0.08993, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3015/0.3914, allocations: 82.31 MB / 469.9 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.3917, allocations: 71.97 kB / 469.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03483/0.4265, allocations: 12.61 MB / 482.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4266, allocations: 0 / 482.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.967e-05/0.4266, allocations: 12 kB / 482.6 MB, free: 15.62 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002146/0.4288, allocations: 1.074 MB / 483.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.4288, allocations: 12.03 kB / 483.6 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.429, allocations: 86.97 kB / 483.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007934/0.4298, allocations: 0.5037 MB / 484.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.4298, allocations: 20 kB / 484.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.83e-05/0.4299, allocations: 48.7 kB / 484.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008748/0.4308, allocations: 0.5142 MB / 484.8 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008927/0.4317, allocations: 487.8 kB / 485.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.4317, allocations: 4 kB / 485.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.094e-05/0.4318, allocations: 0 / 485.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.4318, allocations: 16 kB / 485.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003667/0.4355, allocations: 2.233 MB / 487.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000688/0.4362, allocations: 444.5 kB / 488 MB, free: 9.969 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003644/0.4366, allocations: 250 kB / 488.2 MB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.286e-05/0.4367, allocations: 8.422 kB / 488.2 MB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005723/0.4372, allocations: 334.4 kB / 488.6 MB, free: 9.367 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.984e-06/0.4373, allocations: 0 / 488.6 MB, free: 9.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.05899/0.4963, allocations: 13.79 MB / 0.4906 GB, free: 11.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.636e-05/0.4964, allocations: 141.3 kB / 0.4907 GB, free: 11.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005755/0.497, allocations: 418.3 kB / 0.4911 GB, free: 10.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001706/0.4972, allocations: 29.64 kB / 0.4911 GB, free: 10.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.4974, allocations: 391.8 kB / 0.4915 GB, free: 10.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002619/0.4977, allocations: 303.5 kB / 0.4918 GB, free: 10.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.4978, allocations: 0 / 0.4918 GB, free: 10.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.498, allocations: 386.8 kB / 0.4922 GB, free: 9.805 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007267/0.4987, allocations: 454.6 kB / 0.4926 GB, free: 9.359 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000922/0.4996, allocations: 0.6811 MB / 0.4933 GB, free: 8.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/0.5015, allocations: 0.6932 MB / 0.4939 GB, free: 7.898 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.5015, allocations: 4 kB / 0.4939 GB, free: 7.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02074/0.5223, allocations: 4.895 MB / 0.4987 GB, free: 2.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.282e-05/0.5224, allocations: 59.41 kB / 0.4988 GB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/0.5224, allocations: 8 kB / 0.4988 GB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02207/0.5445, allocations: 4.8 MB / 0.5035 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007946/0.5453, allocations: 179.7 kB / 0.5036 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005827/0.5512, allocations: 3.075 MB / 0.5066 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/0.553, allocations: 207.7 kB / 0.5068 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.5531, allocations: 48.03 kB / 0.5069 GB, free: 10.54 MB / 394.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: 27 * 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 (54): * Single equations (assignments): 50 * 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.0003628/0.5535, allocations: 148.1 kB / 0.507 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02169/0.5752, allocations: 4.659 MB / 0.5116 GB, free: 5.707 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003821/0.5756, allocations: 79.06 kB / 0.5117 GB, free: 5.629 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02216/0.5978, allocations: 4.793 MB / 0.5163 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/0.5979, allocations: 19.89 kB / 0.5164 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.5979, allocations: 0 / 0.5164 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.272e-05/0.5979, allocations: 3.984 kB / 0.5164 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.5994, allocations: 1.002 MB / 0.5173 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.5995, allocations: 0 / 0.5173 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005828/0.6, allocations: 131.8 kB / 0.5175 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0227/0.6228, allocations: 4.796 MB / 0.5222 GB, free: 10.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001929/0.623, allocations: 11.97 kB / 0.5222 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005611/0.6286, allocations: 3.076 MB / 0.5252 GB, free: 7.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.6286, allocations: 7.938 kB / 0.5252 GB, free: 7.652 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02262/0.6513, allocations: 5.409 MB / 0.5305 GB, free: 2.215 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002788/0.6516, allocations: 148.1 kB / 0.5306 GB, free: 2.051 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001707/0.6518, allocations: 8 kB / 0.5306 GB, free: 2.043 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.6532, allocations: 191.8 kB / 0.5308 GB, free: 1.855 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.6535, allocations: 108.6 kB / 0.5309 GB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.6536, allocations: 31.97 kB / 0.5309 GB, free: 1.719 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003758/0.654, allocations: 311 kB / 0.5312 GB, free: 1.414 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.654, allocations: 0 / 0.5312 GB, free: 1.414 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008396/0.6548, allocations: 239.8 kB / 0.5314 GB, free: 1.184 MB / 410.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.02249/0.6773, allocations: 5.989 MB / 0.5373 GB, free: 11.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003443/0.6808, allocations: 1.463 MB / 0.5387 GB, free: 9.672 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.6809, allocations: 8.375 kB / 0.5387 GB, free: 9.664 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002279/0.6832, allocations: 0.7901 MB / 0.5395 GB, free: 8.867 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006963/0.6839, allocations: 89.98 kB / 0.5396 GB, free: 8.781 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.6867, allocations: 1.303 MB / 0.5409 GB, free: 7.434 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004882/0.6872, allocations: 0.9702 MB / 0.5418 GB, free: 6.438 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002973/0.6875, allocations: 58.22 kB / 0.5419 GB, free: 6.379 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003364/0.6878, allocations: 271.3 kB / 0.5421 GB, free: 6.113 MB / 426.7 MB Notification: Performance of SimCode: time 6.51e-07/0.6878, allocations: 0 / 0.5421 GB, free: 6.113 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2945/0.9823, allocations: 25.85 MB / 0.5674 GB, free: 134.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/0.9825, allocations: 142.9 kB / 0.5675 GB, free: 133.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.8/3.782, allocations: 3.938 kB / 0.5675 GB, free: 133.9 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat