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: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [: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.0009543/0.0009543, allocations: 179.5 kB / 8.128 MB, free: 2.207 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.131/1.131, allocations: 221.4 MB / 229.9 MB, free: 3.406 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.0009344/0.0009345, allocations: 106.5 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.712e-06/6.812e-06, allocations: 0 / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1876, allocations: 50.39 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08572/0.2734, allocations: 82.25 MB / 469.1 MB, free: 4.523 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001948/0.2736, allocations: 75.89 kB / 469.2 MB, free: 4.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03611/0.3097, allocations: 12.48 MB / 481.7 MB, free: 7.969 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.929e-05/0.3098, allocations: 20 kB / 481.7 MB, free: 7.949 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.002206/0.312, allocations: 1.1 MB / 482.8 MB, free: 6.789 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.312, allocations: 8.031 kB / 482.8 MB, free: 6.781 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.3122, allocations: 90.97 kB / 482.9 MB, free: 6.691 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008347/0.3131, allocations: 0.5076 MB / 483.4 MB, free: 6.145 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.3131, allocations: 23.91 kB / 483.5 MB, free: 6.121 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.039e-05/0.3132, allocations: 40 kB / 483.5 MB, free: 6.082 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009078/0.3141, allocations: 0.5103 MB / 484 MB, free: 5.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008649/0.315, allocations: 491.8 kB / 484.5 MB, free: 5.082 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.315, allocations: 0 / 484.5 MB, free: 5.082 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.672e-05/0.3151, allocations: 11.92 kB / 484.5 MB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.3151, allocations: 16 kB / 484.5 MB, free: 5.055 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003804/0.3189, allocations: 2.256 MB / 486.8 MB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006767/0.3196, allocations: 411.1 kB / 487.2 MB, free: 2.277 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003496/0.32, allocations: 242.1 kB / 487.4 MB, free: 2.039 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.981e-05/0.32, allocations: 12.44 kB / 487.4 MB, free: 2.027 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004426/0.3205, allocations: 304.8 kB / 487.7 MB, free: 1.707 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.804e-06/0.3205, allocations: 0 / 487.7 MB, free: 1.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.06796/0.3884, allocations: 14.29 MB / 0.4902 GB, free: 3.344 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.717e-05/0.3885, allocations: 146.4 kB / 0.4904 GB, free: 3.172 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005495/0.3891, allocations: 418.2 kB / 0.4908 GB, free: 2.754 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002062/0.3893, allocations: 33.7 kB / 0.4908 GB, free: 2.715 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/0.3895, allocations: 311.8 kB / 0.4911 GB, free: 2.402 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/0.3898, allocations: 303.5 kB / 0.4914 GB, free: 2.102 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.809e-05/0.3899, allocations: 0 / 0.4914 GB, free: 2.102 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.39, allocations: 386.8 kB / 0.4918 GB, free: 1.715 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007845/0.3908, allocations: 454.3 kB / 0.4922 GB, free: 1.266 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008991/0.3917, allocations: 0.6802 MB / 0.4929 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1402/0.5319, allocations: 0.6995 MB / 0.4935 GB, free: 77.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/0.5319, allocations: 3.062 kB / 0.4935 GB, free: 77.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02343/0.5554, allocations: 5.01 MB / 0.4984 GB, free: 77.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.5554, allocations: 9.719 kB / 0.4984 GB, free: 77.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.5554, allocations: 6.688 kB / 0.4985 GB, free: 77.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02548/0.5809, allocations: 4.952 MB / 0.5033 GB, free: 77.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008306/0.5818, allocations: 202 kB / 0.5035 GB, free: 77.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008441/0.5903, allocations: 3.438 MB / 0.5068 GB, free: 75.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/0.5923, allocations: 227.4 kB / 0.5071 GB, free: 75.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002191/0.5926, allocations: 46.91 kB / 0.5071 GB, free: 75.9 MB / 378.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.0004211/0.593, allocations: 143.5 kB / 0.5072 GB, free: 75.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.5932, allocations: 76 kB / 0.5073 GB, free: 75.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02371/0.617, allocations: 4.917 MB / 0.5121 GB, free: 73.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.405e-05/0.6171, allocations: 8 kB / 0.5121 GB, free: 73.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.6171, allocations: 7.906 kB / 0.5121 GB, free: 73.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.712e-05/0.6171, allocations: 9.625 kB / 0.5121 GB, free: 73.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.6187, allocations: 0.9996 MB / 0.5131 GB, free: 73.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.6188, allocations: 0 / 0.5131 GB, free: 73.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006449/0.6194, allocations: 142 kB / 0.5132 GB, free: 73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02639/0.6458, allocations: 4.954 MB / 0.5181 GB, free: 69.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000254/0.6461, allocations: 13.91 kB / 0.5181 GB, free: 69.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007272/0.6534, allocations: 3.445 MB / 0.5215 GB, free: 67.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.6535, allocations: 4.438 kB / 0.5215 GB, free: 67.14 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02405/0.6775, allocations: 5.562 MB / 0.5269 GB, free: 62.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002122/0.6778, allocations: 147.5 kB / 0.527 GB, free: 62.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002841/0.6781, allocations: 4.062 kB / 0.527 GB, free: 62.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001653/0.6797, allocations: 215.3 kB / 0.5272 GB, free: 62.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000249/0.68, allocations: 98.56 kB / 0.5273 GB, free: 62.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.6801, allocations: 35.34 kB / 0.5274 GB, free: 62.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003213/0.6804, allocations: 319.4 kB / 0.5277 GB, free: 61.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007631/0.6812, allocations: 229.3 kB / 0.5279 GB, free: 61.61 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.0002572/0.6815, allocations: 120.4 kB / 0.528 GB, free: 61.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004178/0.6857, allocations: 1.565 MB / 0.5295 GB, free: 60.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.6857, allocations: 0 / 0.5295 GB, free: 60.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003186/0.6889, allocations: 0.9554 MB / 0.5305 GB, free: 59.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005469/0.6894, allocations: 91.69 kB / 0.5306 GB, free: 59.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003081/0.6925, allocations: 1.298 MB / 0.5318 GB, free: 58.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004532/0.693, allocations: 1.012 MB / 0.5328 GB, free: 57.55 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.693, allocations: 0 / 0.5328 GB, free: 57.55 MB / 378.7 MB Notification: Performance of Templates: time 0.02447/0.7175, allocations: 20.21 MB / 0.5526 GB, free: 37.56 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches