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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 183.7 kB / 8.137 MB, free: 2.188 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.109/1.109, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0008361/0.0008361, allocations: 98.28 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09485/0.09572, allocations: 55.81 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.2819, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08194/0.3638, allocations: 82.25 MB / 469.2 MB, free: 4.551 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001772/0.3641, allocations: 76.78 kB / 469.3 MB, free: 4.477 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.0362/0.4003, allocations: 13.57 MB / 482.9 MB, free: 6.836 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.4003, allocations: 8 kB / 482.9 MB, free: 6.828 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.4005, allocations: 90.97 kB / 483 MB, free: 6.738 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008126/0.4013, allocations: 0.5153 MB / 483.5 MB, free: 6.184 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.4013, allocations: 23.91 kB / 483.5 MB, free: 6.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.4014, allocations: 36 kB / 483.6 MB, free: 6.125 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008803/0.4023, allocations: 0.5103 MB / 484.1 MB, free: 5.613 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008153/0.4032, allocations: 491.8 kB / 484.5 MB, free: 5.125 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.4032, allocations: 0 / 484.5 MB, free: 5.125 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/0.4032, allocations: 0 / 484.5 MB, free: 5.125 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.4033, allocations: 16 kB / 484.6 MB, free: 5.109 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.407, allocations: 2.264 MB / 486.8 MB, free: 2.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006498/0.4076, allocations: 408 kB / 487.2 MB, free: 2.324 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003377/0.408, allocations: 243.1 kB / 487.5 MB, free: 2.086 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.756e-05/0.408, allocations: 12.42 kB / 487.5 MB, free: 2.074 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004347/0.4085, allocations: 312.8 kB / 487.8 MB, free: 1.746 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.894e-06/0.4085, allocations: 0 / 487.8 MB, free: 1.746 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.06599/0.4745, allocations: 14.28 MB / 0.4903 GB, free: 3.395 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.43e-05/0.4746, allocations: 141.3 kB / 0.4904 GB, free: 3.227 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000491/0.4751, allocations: 418.3 kB / 0.4908 GB, free: 2.812 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.4752, allocations: 33.69 kB / 0.4909 GB, free: 2.773 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.4754, allocations: 303.8 kB / 0.4911 GB, free: 2.469 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002381/0.4756, allocations: 303.4 kB / 0.4914 GB, free: 2.168 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.932e-05/0.4757, allocations: 4 kB / 0.4914 GB, free: 2.164 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.4758, allocations: 388.7 kB / 0.4918 GB, free: 1.777 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007674/0.4766, allocations: 454.3 kB / 0.4922 GB, free: 1.328 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008912/0.4775, allocations: 0.6841 MB / 0.4929 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.09606/0.5736, allocations: 0.6994 MB / 0.4936 GB, free: 133.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.5736, allocations: 3.312 kB / 0.4936 GB, free: 133.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02226/0.5959, allocations: 5.006 MB / 0.4985 GB, free: 133.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.596, allocations: 8.406 kB / 0.4985 GB, free: 133.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.596, allocations: 3.25 kB / 0.4985 GB, free: 133.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02406/0.62, allocations: 4.949 MB / 0.5033 GB, free: 133.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007322/0.6208, allocations: 194.4 kB / 0.5035 GB, free: 133.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005707/0.6265, allocations: 3.234 MB / 0.5067 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/0.6284, allocations: 227.2 kB / 0.5069 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.6285, allocations: 48.03 kB / 0.5069 GB, free: 132.7 MB / 378.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.0002939/0.6288, allocations: 143.9 kB / 0.5071 GB, free: 132.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.629, allocations: 80.47 kB / 0.5071 GB, free: 132.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02219/0.6512, allocations: 4.915 MB / 0.5119 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.923e-05/0.6512, allocations: 10.64 kB / 0.512 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.6513, allocations: 0 / 0.512 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.132e-05/0.6513, allocations: 9.609 kB / 0.512 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001853/0.6532, allocations: 0.9963 MB / 0.5129 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.6532, allocations: 0.7031 kB / 0.5129 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007333/0.6539, allocations: 140.9 kB / 0.5131 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02521/0.6791, allocations: 4.949 MB / 0.5179 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001895/0.6794, allocations: 15.91 kB / 0.5179 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005444/0.6848, allocations: 3.23 MB / 0.5211 GB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.6848, allocations: 0 / 0.5211 GB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02263/0.7075, allocations: 5.565 MB / 0.5265 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02375/0.7313, allocations: 6.664 MB / 0.533 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001964/0.7315, allocations: 140.2 kB / 0.5332 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001914/0.7317, allocations: 0 / 0.5332 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.7332, allocations: 215.8 kB / 0.5334 GB, free: 118.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/0.7335, allocations: 108.5 kB / 0.5335 GB, free: 118.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.715e-05/0.7336, allocations: 31.97 kB / 0.5335 GB, free: 118.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002881/0.7339, allocations: 313 kB / 0.5338 GB, free: 118 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001227/0.7351, allocations: 240.7 kB / 0.534 GB, free: 117.8 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) * 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.0002221/0.7353, allocations: 116.3 kB / 0.5341 GB, free: 117.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002831/0.7382, allocations: 1.404 MB / 0.5355 GB, free: 116.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7382, allocations: 2.312 kB / 0.5355 GB, free: 116.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00199/0.7402, allocations: 0.8035 MB / 0.5363 GB, free: 115.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.7407, allocations: 83.55 kB / 0.5364 GB, free: 115.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/0.7433, allocations: 1.322 MB / 0.5377 GB, free: 114 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004139/0.7437, allocations: 1.017 MB / 0.5387 GB, free: 113 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.7437, allocations: 0 / 0.5387 GB, free: 113 MB / 378.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