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: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate")
translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate")
[<interactive>:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope <global 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.0009629/0.0009631, allocations: 182 kB / 8.132 MB, free: 2.168 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.161/1.161, allocations: 221.4 MB / 229.9 MB, free: 3.379 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.001042/0.001042, allocations: 92.98 kB / 280.8 MB, free: 1.293 MB / 218.7 MB
Notification: Performance of FrontEnd - loaded program: time 5.801e-06/5.841e-06, allocations: 0 / 336.5 MB, free: 9.555 MB / 282.7 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1764, allocations: 50.39 MB / 386.9 MB, free: 38.1 MB / 298.7 MB
Notification: Performance of FrontEnd - scodeFlatten: time 0.07894/0.2554, allocations: 82.24 MB / 469.1 MB, free: 4.566 MB / 346.7 MB
Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001717/0.2556, allocations: 71.91 kB / 469.2 MB, free: 4.496 MB / 346.7 MB
Notification: Performance of FrontEnd: time 0.03446/0.2901, allocations: 12.46 MB / 481.7 MB, free: 8.031 MB / 362.7 MB
Notification: Performance of Transformations before backend: time 2.922e-05/0.2902, allocations: 12.56 kB / 481.7 MB, free: 8.02 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.002249/0.2924, allocations: 1.096 MB / 482.8 MB, free: 6.863 MB / 362.7 MB
Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.2925, allocations: 15.97 kB / 482.8 MB, free: 6.848 MB / 362.7 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.2926, allocations: 86.97 kB / 482.9 MB, free: 6.762 MB / 362.7 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008583/0.2935, allocations: 0.5115 MB / 483.4 MB, free: 6.211 MB / 362.7 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.2935, allocations: 23.91 kB / 483.4 MB, free: 6.188 MB / 362.7 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.892e-05/0.2936, allocations: 37.69 kB / 483.5 MB, free: 6.152 MB / 362.7 MB
Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009235/0.2946, allocations: 0.5103 MB / 484 MB, free: 5.641 MB / 362.7 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008827/0.2955, allocations: 491.8 kB / 484.4 MB, free: 5.152 MB / 362.7 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.2955, allocations: 0 / 484.4 MB, free: 5.152 MB / 362.7 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.427e-05/0.2956, allocations: 4 kB / 484.5 MB, free: 5.148 MB / 362.7 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.2956, allocations: 12 kB / 484.5 MB, free: 5.137 MB / 362.7 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003946/0.2995, allocations: 2.264 MB / 486.7 MB, free: 2.758 MB / 362.7 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006794/0.3002, allocations: 411.1 kB / 487.1 MB, free: 2.352 MB / 362.7 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003569/0.3006, allocations: 246.1 kB / 487.4 MB, free: 2.109 MB / 362.7 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.579e-05/0.3007, allocations: 4.438 kB / 487.4 MB, free: 2.105 MB / 362.7 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004672/0.3011, allocations: 308.8 kB / 487.7 MB, free: 1.781 MB / 362.7 MB
Notification: Performance of pre-optimization done (n=54): time 2.756e-06/0.3011, allocations: 4 kB / 487.7 MB, free: 1.777 MB / 362.7 MB
Notification: Performance of matching and sorting (n=94): time 0.06892/0.3701, allocations: 14.28 MB / 0.4902 GB, free: 3.418 MB / 378.7 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.041e-05/0.3702, allocations: 145.3 kB / 0.4903 GB, free: 3.246 MB / 378.7 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005325/0.3707, allocations: 418.3 kB / 0.4907 GB, free: 2.832 MB / 378.7 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001643/0.3709, allocations: 29.69 kB / 0.4908 GB, free: 2.797 MB / 378.7 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.3711, allocations: 303.8 kB / 0.4911 GB, free: 2.492 MB / 378.7 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002656/0.3714, allocations: 311.4 kB / 0.4914 GB, free: 2.184 MB / 378.7 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.658e-05/0.3714, allocations: 1.594 kB / 0.4914 GB, free: 2.184 MB / 378.7 MB
Notification: Performance of setup shared object (initialization): time 0.0001335/0.3716, allocations: 382.8 kB / 0.4917 GB, free: 1.801 MB / 378.7 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007545/0.3723, allocations: 458.3 kB / 0.4922 GB, free: 1.348 MB / 378.7 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008734/0.3732, allocations: 0.6802 MB / 0.4928 GB, free: 0.5859 MB / 378.7 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.1186/0.4918, allocations: 0.7003 MB / 0.4935 GB, free: 118.7 MB / 378.7 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.4919, allocations: 0 / 0.4935 GB, free: 118.7 MB / 378.7 MB
Notification: Performance of matching and sorting (n=128) (initialization): time 0.02415/0.516, allocations: 5.01 MB / 0.4984 GB, free: 118.6 MB / 378.7 MB
Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.5161, allocations: 7.781 kB / 0.4984 GB, free: 118.6 MB / 378.7 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.5161, allocations: 3.906 kB / 0.4984 GB, free: 118.6 MB / 378.7 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.02478/0.5409, allocations: 4.945 MB / 0.5032 GB, free: 118.5 MB / 378.7 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007505/0.5417, allocations: 200 kB / 0.5034 GB, free: 118.4 MB / 378.7 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005777/0.5475, allocations: 3.225 MB / 0.5066 GB, free: 117.4 MB / 378.7 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/0.5493, allocations: 228.6 kB / 0.5068 GB, free: 117.3 MB / 378.7 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.5494, allocations: 49.66 kB / 0.5068 GB, free: 117.3 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.000307/0.5498, allocations: 144.2 kB / 0.507 GB, free: 117.2 MB / 378.7 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.5499, allocations: 82.05 kB / 0.5071 GB, free: 117.2 MB / 378.7 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02318/0.5731, allocations: 4.912 MB / 0.5119 GB, free: 117 MB / 378.7 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.107e-05/0.5732, allocations: 14.02 kB / 0.5119 GB, free: 117 MB / 378.7 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5732, allocations: 0 / 0.5119 GB, free: 117 MB / 378.7 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.19e-05/0.5732, allocations: 11.02 kB / 0.5119 GB, free: 117 MB / 378.7 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/0.5747, allocations: 0.9928 MB / 0.5128 GB, free: 116.8 MB / 378.7 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.5747, allocations: 4.562 kB / 0.5129 GB, free: 116.8 MB / 378.7 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006455/0.5754, allocations: 147.6 kB / 0.513 GB, free: 116.8 MB / 378.7 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.02567/0.601, allocations: 4.94 MB / 0.5178 GB, free: 115.3 MB / 378.7 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002142/0.6013, allocations: 11.97 kB / 0.5178 GB, free: 115.3 MB / 378.7 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005704/0.607, allocations: 3.232 MB / 0.521 GB, free: 112.8 MB / 378.7 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/0.6071, allocations: 3.75 kB / 0.521 GB, free: 112.8 MB / 378.7 MB
Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02309/0.6301, allocations: 5.557 MB / 0.5264 GB, free: 108.2 MB / 378.7 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.6304, allocations: 147.8 kB / 0.5266 GB, free: 108.1 MB / 378.7 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.6306, allocations: 0 / 0.5266 GB, free: 108.1 MB / 378.7 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/0.6321, allocations: 219.8 kB / 0.5268 GB, free: 107.8 MB / 378.7 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002444/0.6324, allocations: 102.4 kB / 0.5269 GB, free: 107.8 MB / 378.7 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.6325, allocations: 36.47 kB / 0.5269 GB, free: 107.7 MB / 378.7 MB
Notification: Performance of sort global known variables: time 0.0003171/0.6328, allocations: 306.6 kB / 0.5272 GB, free: 107.5 MB / 378.7 MB
Notification: Performance of remove unused functions: time 0.0007067/0.6335, allocations: 234.6 kB / 0.5274 GB, free: 107.2 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.0002529/0.6338, allocations: 126.2 kB / 0.5275 GB, free: 107.1 MB / 378.7 MB
Notification: Performance of simCode: created initialization part: time 0.002964/0.6368, allocations: 1.401 MB / 0.5289 GB, free: 105.7 MB / 378.7 MB
Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.6368, allocations: 1.375 kB / 0.5289 GB, free: 105.7 MB / 378.7 MB
Notification: Performance of simCode: created simulation system equations: time 0.002089/0.6389, allocations: 0.8013 MB / 0.5297 GB, free: 104.9 MB / 378.7 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005203/0.6394, allocations: 88.77 kB / 0.5298 GB, free: 104.8 MB / 378.7 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.6421, allocations: 1.323 MB / 0.5311 GB, free: 103.5 MB / 378.7 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004274/0.6426, allocations: 1.015 MB / 0.5321 GB, free: 102.5 MB / 378.7 MB
Notification: Performance of SimCode: time 9.92e-07/0.6426, allocations: 0 / 0.5321 GB, free: 102.5 MB / 378.7 MB
Notification: Performance of Templates: time 0.02336/0.666, allocations: 20.76 MB / 0.5523 GB, free: 82.06 MB / 378.7 MB
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile
(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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001)
Reference file matches