Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_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.0009819/0.0009819, allocations: 176.4 kB / 8.346 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.313/1.313, allocations: 221.5 MB / 230.3 MB, free: 7.527 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.001256/0.001256, allocations: 96.36 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.739e-05/1.749e-05, allocations: 4 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1278, allocations: 50.42 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3038/0.4316, allocations: 82.31 MB / 469.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.4319, allocations: 69.7 kB / 469.9 MB, free: 12.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03508/0.467, allocations: 12.63 MB / 482.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.467, allocations: 0 / 482.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.251e-05/0.4671, allocations: 16 kB / 482.6 MB, free: 15.63 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.002289/0.4694, allocations: 1.074 MB / 483.7 MB, free: 14.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.4694, allocations: 12.03 kB / 483.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.4696, allocations: 90.97 kB / 483.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008762/0.4705, allocations: 0.4998 MB / 484.3 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.4705, allocations: 24 kB / 484.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.708e-05/0.4706, allocations: 39.95 kB / 484.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008862/0.4715, allocations: 0.518 MB / 484.8 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008649/0.4724, allocations: 487.8 kB / 485.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.4724, allocations: 0 / 485.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.176e-05/0.4725, allocations: 0 / 485.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.4725, allocations: 20 kB / 485.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003754/0.4763, allocations: 2.237 MB / 487.6 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007197/0.477, allocations: 436.6 kB / 488 MB, free: 9.984 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000357/0.4774, allocations: 246.1 kB / 488.2 MB, free: 9.742 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.543e-05/0.4775, allocations: 16.42 kB / 488.3 MB, free: 9.727 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005537/0.478, allocations: 329.9 kB / 488.6 MB, free: 9.383 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.924e-06/0.478, allocations: 0 / 488.6 MB, free: 9.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.06048/0.5385, allocations: 13.8 MB / 0.4906 GB, free: 11.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.368e-05/0.5386, allocations: 145.2 kB / 0.4907 GB, free: 11.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005707/0.5392, allocations: 418.3 kB / 0.4911 GB, free: 10.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001815/0.5394, allocations: 29.64 kB / 0.4912 GB, free: 10.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002804/0.5397, allocations: 391.8 kB / 0.4915 GB, free: 10.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002655/0.54, allocations: 299.5 kB / 0.4918 GB, free: 10.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.86e-05/0.5401, allocations: 0 / 0.4918 GB, free: 10.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.5402, allocations: 390.8 kB / 0.4922 GB, free: 9.801 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007474/0.541, allocations: 454.6 kB / 0.4926 GB, free: 9.355 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009009/0.5419, allocations: 0.6694 MB / 0.4933 GB, free: 8.598 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001874/0.5438, allocations: 0.694 MB / 0.494 GB, free: 7.906 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.5438, allocations: 8 kB / 0.494 GB, free: 7.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02175/0.5655, allocations: 4.906 MB / 0.4988 GB, free: 2.969 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.147e-05/0.5657, allocations: 59.41 kB / 0.4988 GB, free: 2.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/0.5657, allocations: 8 kB / 0.4988 GB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02307/0.5888, allocations: 4.804 MB / 0.5035 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007765/0.5896, allocations: 179.7 kB / 0.5037 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006665/0.5963, allocations: 3.231 MB / 0.5068 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.598, allocations: 207.9 kB / 0.507 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.5982, allocations: 55.97 kB / 0.5071 GB, free: 10.36 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vbc:DUMMY_DER(fixed = false ) "Base-collector voltage" type: Real $DER.T1.ibe:DUMMY_DER(fixed = false ) "Base-emitter diode current" type: Real $DER.T1.vbc:DUMMY_DER(fixed = false ) "Base-collector 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.0003169/0.5985, allocations: 137.9 kB / 0.5072 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02108/0.6196, allocations: 4.667 MB / 0.5118 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000449/0.6201, allocations: 83.06 kB / 0.5119 GB, free: 5.445 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02091/0.641, allocations: 4.786 MB / 0.5165 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.6411, allocations: 12.03 kB / 0.5166 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.6411, allocations: 0 / 0.5166 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.216e-05/0.6411, allocations: 7.984 kB / 0.5166 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.6426, allocations: 0.9984 MB / 0.5175 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.6426, allocations: 3.938 kB / 0.5175 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005902/0.6432, allocations: 123.9 kB / 0.5177 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0223/0.6656, allocations: 4.808 MB / 0.5224 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002327/0.6658, allocations: 11.97 kB / 0.5224 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006361/0.6722, allocations: 3.236 MB / 0.5255 GB, free: 7.332 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.6722, allocations: 4 kB / 0.5255 GB, free: 7.328 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02156/0.6938, allocations: 5.413 MB / 0.5308 GB, free: 1.887 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/0.6941, allocations: 152 kB / 0.531 GB, free: 1.719 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.6943, allocations: 0 / 0.531 GB, free: 1.719 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.6957, allocations: 199.8 kB / 0.5311 GB, free: 1.523 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002463/0.696, allocations: 96.62 kB / 0.5312 GB, free: 1.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.245e-05/0.6961, allocations: 39.92 kB / 0.5313 GB, free: 1.391 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000377/0.6965, allocations: 314.9 kB / 0.5316 GB, free: 1.082 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.6965, allocations: 0 / 0.5316 GB, free: 1.082 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007705/0.6973, allocations: 235.9 kB / 0.5318 GB, free: 0.8516 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.02196/0.7192, allocations: 5.981 MB / 0.5376 GB, free: 10.83 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004283/0.7236, allocations: 1.615 MB / 0.5392 GB, free: 9.195 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.7236, allocations: 0 / 0.5392 GB, free: 9.195 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00308/0.7267, allocations: 0.9436 MB / 0.5401 GB, free: 8.246 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006206/0.7273, allocations: 95.52 kB / 0.5402 GB, free: 8.156 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002922/0.7302, allocations: 1.288 MB / 0.5415 GB, free: 6.824 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004631/0.7307, allocations: 0.9702 MB / 0.5424 GB, free: 5.828 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002716/0.731, allocations: 58.22 kB / 0.5425 GB, free: 5.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003253/0.7313, allocations: 271.3 kB / 0.5428 GB, free: 5.504 MB / 426.7 MB Notification: Performance of SimCode: time 5.21e-07/0.7313, allocations: 0 / 0.5428 GB, free: 5.504 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2532/0.9845, allocations: 25.31 MB / 0.5675 GB, free: 134.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/0.9847, allocations: 145.8 kB / 0.5676 GB, free: 134.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.767/3.752, allocations: 0 / 0.5676 GB, free: 134.3 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat does not exist to compare? outputFormat=mat