Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_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 trunk/package.mo): time 0.001018/0.001018, allocations: 205.8 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.136/1.136, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008818/0.0008819, allocations: 89.56 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09104/0.09195, allocations: 56.9 MB / 343.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07914/0.1711, allocations: 51.48 MB / 394.7 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2037/0.3748, allocations: 83.03 MB / 477.7 MB, free: 10.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/0.3751, allocations: 70.52 kB / 477.8 MB, free: 9.98 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.03373/0.4088, allocations: 13.63 MB / 491.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.4089, allocations: 11.83 kB / 491.4 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.409, allocations: 86.97 kB / 491.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008169/0.4098, allocations: 0.514 MB / 492 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.4099, allocations: 20 kB / 492.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.094e-05/0.41, allocations: 40 kB / 492.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008795/0.4109, allocations: 0.5064 MB / 492.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008432/0.4117, allocations: 489.7 kB / 493.1 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.4117, allocations: 0 / 493.1 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/0.4118, allocations: 11.98 kB / 493.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.4118, allocations: 12 kB / 493.1 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003815/0.4157, allocations: 2.267 MB / 495.4 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000664/0.4163, allocations: 403 kB / 495.8 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003357/0.4167, allocations: 237.5 kB / 496 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.907e-05/0.4167, allocations: 15.36 kB / 496 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004486/0.4172, allocations: 319.3 kB / 496.3 MB, free: 10.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.793e-06/0.4172, allocations: 0 / 496.3 MB, free: 10.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.06996/0.4872, allocations: 14.28 MB / 0.4986 GB, free: 13.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.097e-05/0.4873, allocations: 149.2 kB / 0.4988 GB, free: 13.49 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004961/0.4878, allocations: 421.9 kB / 0.4992 GB, free: 13.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001125/0.4879, allocations: 29.7 kB / 0.4992 GB, free: 13.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.4881, allocations: 318.5 kB / 0.4995 GB, free: 12.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002564/0.4884, allocations: 303.2 kB / 0.4998 GB, free: 12.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.515e-05/0.4885, allocations: 0 / 0.4998 GB, free: 12.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4886, allocations: 388.1 kB / 0.5002 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007699/0.4894, allocations: 453.7 kB / 0.5006 GB, free: 11.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009306/0.4903, allocations: 0.672 MB / 0.5013 GB, free: 11.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002064/0.4924, allocations: 0.7077 MB / 0.502 GB, free: 10.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.4924, allocations: 4 kB / 0.502 GB, free: 10.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02495/0.5174, allocations: 5.008 MB / 0.5069 GB, free: 5.984 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.5174, allocations: 6.344 kB / 0.5069 GB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.31e-05/0.5175, allocations: 9.562 kB / 0.5069 GB, free: 5.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02723/0.5447, allocations: 4.945 MB / 0.5117 GB, free: 1.016 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008372/0.5456, allocations: 199.7 kB / 0.5119 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008206/0.5538, allocations: 3.441 MB / 0.5153 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/0.5557, allocations: 227.7 kB / 0.5155 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/0.5559, allocations: 51.97 kB / 0.5155 GB, free: 13.05 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.0003514/0.5563, allocations: 134 kB / 0.5156 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.5564, allocations: 80.5 kB / 0.5157 GB, free: 12.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02437/0.5808, allocations: 4.918 MB / 0.5205 GB, free: 7.906 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.5809, allocations: 8 kB / 0.5205 GB, free: 7.898 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.5809, allocations: 5.969 kB / 0.5205 GB, free: 7.895 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.5809, allocations: 3.984 kB / 0.5205 GB, free: 7.891 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.5823, allocations: 1.015 MB / 0.5215 GB, free: 6.844 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.5823, allocations: 0 / 0.5215 GB, free: 6.844 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000653/0.5829, allocations: 139.8 kB / 0.5217 GB, free: 6.707 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02739/0.6103, allocations: 4.949 MB / 0.5265 GB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001851/0.6106, allocations: 17.84 kB / 0.5265 GB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008104/0.6187, allocations: 3.444 MB / 0.5299 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.6187, allocations: 0 / 0.5299 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02553/0.6442, allocations: 5.571 MB / 0.5353 GB, free: 8.625 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02633/0.6706, allocations: 6.648 MB / 0.5418 GB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002209/0.6709, allocations: 144.2 kB / 0.5419 GB, free: 1.785 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002103/0.6711, allocations: 4 kB / 0.542 GB, free: 1.781 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/0.6727, allocations: 219.8 kB / 0.5422 GB, free: 1.566 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002572/0.673, allocations: 104.5 kB / 0.5423 GB, free: 1.465 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/0.6731, allocations: 35.97 kB / 0.5423 GB, free: 1.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003506/0.6734, allocations: 310.9 kB / 0.5426 GB, free: 1.129 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001352/0.6748, allocations: 232 kB / 0.5428 GB, free: 0.9023 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.000275/0.6751, allocations: 127.8 kB / 0.5429 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004613/0.6797, allocations: 1.564 MB / 0.5445 GB, free: 15.19 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.6797, allocations: 7.938 kB / 0.5445 GB, free: 15.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003535/0.6833, allocations: 0.9471 MB / 0.5454 GB, free: 14.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005422/0.6838, allocations: 82.86 kB / 0.5455 GB, free: 14.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003203/0.687, allocations: 1.312 MB / 0.5468 GB, free: 12.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005984/0.6877, allocations: 1.012 MB / 0.5477 GB, free: 11.78 MB / 426.7 MB Notification: Performance of SimCode: time 2.755e-06/0.6877, allocations: 0 / 0.5477 GB, free: 11.78 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat does not exist to compare? outputFormat=mat