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: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001881/0.001881, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 225.5 MB / 234.4 MB, free: 3.438 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000925/0.0009249, allocations: 88.02 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.656e-06/8.696e-06, allocations: 4 kB / 343.1 MB, free: 8.762 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.0918, allocations: 51.48 MB / 394.6 MB, free: 5.234 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2343/0.3261, allocations: 83.03 MB / 477.6 MB, free: 9.969 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000188/0.3263, allocations: 74.44 kB / 477.7 MB, free: 9.941 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03123/0.3576, allocations: 12.49 MB / 490.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.167e-05/0.3576, allocations: 15.98 kB / 490.2 MB, free: 15.68 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.002179/0.3598, allocations: 1.098 MB / 491.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.3599, allocations: 12.03 kB / 491.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.36, allocations: 91.72 kB / 491.4 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000822/0.3609, allocations: 0.5115 MB / 491.9 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.3609, allocations: 24 kB / 492 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.707e-05/0.361, allocations: 40.44 kB / 492 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008887/0.3619, allocations: 0.5119 MB / 492.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008117/0.3627, allocations: 490 kB / 493 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.3628, allocations: 0 / 493 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.59e-05/0.3628, allocations: 3.984 kB / 493 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.3628, allocations: 16 kB / 493 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003692/0.3665, allocations: 2.262 MB / 495.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006446/0.3672, allocations: 410.3 kB / 495.7 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003301/0.3675, allocations: 244.2 kB / 495.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.914e-05/0.3676, allocations: 8.422 kB / 495.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004446/0.3681, allocations: 312.4 kB / 496.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.864e-06/0.3681, allocations: 7.938 kB / 496.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.0682/0.4363, allocations: 14.28 MB / 0.4985 GB, free: 13.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.188e-05/0.4364, allocations: 148.7 kB / 0.4987 GB, free: 13.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005949/0.437, allocations: 421.6 kB / 0.4991 GB, free: 13.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002698/0.4373, allocations: 25.7 kB / 0.4991 GB, free: 13.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002462/0.4375, allocations: 317.2 kB / 0.4994 GB, free: 12.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002931/0.4378, allocations: 301.4 kB / 0.4997 GB, free: 12.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.776e-05/0.4379, allocations: 3.938 kB / 0.4997 GB, free: 12.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.4381, allocations: 381.7 kB / 0.5001 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000754/0.4389, allocations: 464.7 kB / 0.5005 GB, free: 11.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008801/0.4398, allocations: 0.662 MB / 0.5012 GB, free: 11.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002027/0.4418, allocations: 0.7109 MB / 0.5019 GB, free: 10.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.4418, allocations: 4 kB / 0.5019 GB, free: 10.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02433/0.4662, allocations: 5.018 MB / 0.5068 GB, free: 6.074 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.4662, allocations: 6.344 kB / 0.5068 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.4662, allocations: 4 kB / 0.5068 GB, free: 6.066 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02585/0.4921, allocations: 4.944 MB / 0.5116 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008503/0.493, allocations: 195.7 kB / 0.5118 GB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008253/0.5013, allocations: 3.447 MB / 0.5152 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/0.5033, allocations: 223.7 kB / 0.5154 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001977/0.5035, allocations: 47.97 kB / 0.5154 GB, free: 13.15 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.0003933/0.5039, allocations: 145.4 kB / 0.5156 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/0.5041, allocations: 79.06 kB / 0.5156 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02352/0.5277, allocations: 4.916 MB / 0.5204 GB, free: 8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.456e-05/0.5277, allocations: 9.969 kB / 0.5204 GB, free: 7.992 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.5277, allocations: 4 kB / 0.5204 GB, free: 7.988 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.753e-05/0.5278, allocations: 11.97 kB / 0.5205 GB, free: 7.977 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001718/0.5295, allocations: 1.007 MB / 0.5214 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.5295, allocations: 0 / 0.5214 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006442/0.5302, allocations: 139.9 kB / 0.5216 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02594/0.5561, allocations: 4.953 MB / 0.5264 GB, free: 1.836 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002896/0.5565, allocations: 15.97 kB / 0.5264 GB, free: 1.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007827/0.5643, allocations: 3.442 MB / 0.5298 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.5644, allocations: 0 / 0.5298 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02422/0.5886, allocations: 5.567 MB / 0.5352 GB, free: 8.719 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003463/0.589, allocations: 136.2 kB / 0.5353 GB, free: 8.566 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003532/0.5893, allocations: 16.05 kB / 0.5354 GB, free: 8.551 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001709/0.5911, allocations: 211.8 kB / 0.5356 GB, free: 8.344 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002964/0.5914, allocations: 100.6 kB / 0.5357 GB, free: 8.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.5915, allocations: 35.97 kB / 0.5357 GB, free: 8.211 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004642/0.592, allocations: 311 kB / 0.536 GB, free: 7.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008618/0.5929, allocations: 235.9 kB / 0.5362 GB, free: 7.68 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.0003357/0.5932, allocations: 127.7 kB / 0.5363 GB, free: 7.547 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004516/0.5977, allocations: 1.559 MB / 0.5379 GB, free: 5.973 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.5978, allocations: 1.375 kB / 0.5379 GB, free: 5.973 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003375/0.6011, allocations: 0.9545 MB / 0.5388 GB, free: 5.023 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006192/0.6018, allocations: 81.19 kB / 0.5389 GB, free: 4.949 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003536/0.6053, allocations: 1.305 MB / 0.5401 GB, free: 3.613 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006493/0.606, allocations: 1.004 MB / 0.5411 GB, free: 2.586 MB / 410.7 MB Notification: Performance of SimCode: time 5.81e-07/0.606, allocations: 0 / 0.5411 GB, free: 2.586 MB / 410.7 MB Notification: Performance of Templates: time 0.02929/0.6353, allocations: 20.15 MB / 0.5608 GB, free: 14.59 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches