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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 176.2 kB / 8.348 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.613/1.613, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.000808/0.000808, allocations: 88.05 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.679e-05/1.681e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09699/0.09703, allocations: 50.42 MB / 387.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3299/0.4269, allocations: 82.32 MB / 469.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.4272, allocations: 75.95 kB / 469.8 MB, free: 12.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03582/0.463, allocations: 12.62 MB / 482.5 MB, free: 15.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.463, allocations: 4 kB / 482.5 MB, free: 15.78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.084e-05/0.4631, allocations: 12 kB / 482.5 MB, free: 15.77 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.4653, allocations: 1.066 MB / 483.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.4654, allocations: 8.031 kB / 483.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/0.4656, allocations: 90.97 kB / 483.7 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008897/0.4665, allocations: 0.5037 MB / 484.2 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.4665, allocations: 20 kB / 484.2 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.459e-05/0.4666, allocations: 39.95 kB / 484.2 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008993/0.4676, allocations: 0.5219 MB / 484.7 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008344/0.4684, allocations: 487.8 kB / 485.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.779e-05/0.4685, allocations: 0 / 485.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.85e-05/0.4685, allocations: 0 / 485.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.4686, allocations: 16 kB / 485.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003926/0.4725, allocations: 2.249 MB / 487.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006758/0.4732, allocations: 437.9 kB / 487.9 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003256/0.4735, allocations: 246.1 kB / 488.1 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.97e-05/0.4736, allocations: 8.438 kB / 488.2 MB, free: 9.871 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004972/0.4741, allocations: 324.8 kB / 488.5 MB, free: 9.531 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 2.184e-06/0.4741, allocations: 7.938 kB / 488.5 MB, free: 9.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.05945/0.5336, allocations: 13.79 MB / 0.4905 GB, free: 11.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.908e-05/0.5337, allocations: 141.3 kB / 0.4906 GB, free: 11.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006026/0.5343, allocations: 426.1 kB / 0.491 GB, free: 11.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002116/0.5346, allocations: 25.7 kB / 0.4911 GB, free: 11.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002922/0.5349, allocations: 399.8 kB / 0.4914 GB, free: 10.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003179/0.5352, allocations: 299.5 kB / 0.4917 GB, free: 10.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.692e-05/0.5353, allocations: 3.938 kB / 0.4917 GB, free: 10.33 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.5355, allocations: 382.8 kB / 0.4921 GB, free: 9.945 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007435/0.5362, allocations: 455.3 kB / 0.4925 GB, free: 9.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009989/0.5372, allocations: 0.6773 MB / 0.4932 GB, free: 8.734 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00207/0.5393, allocations: 0.701 MB / 0.4939 GB, free: 8.035 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.5393, allocations: 0 / 0.4939 GB, free: 8.035 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02139/0.5607, allocations: 4.895 MB / 0.4987 GB, free: 3.117 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.605e-05/0.5609, allocations: 63.41 kB / 0.4987 GB, free: 3.043 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.5609, allocations: 4 kB / 0.4987 GB, free: 3.039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02309/0.584, allocations: 4.812 MB / 0.5034 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008616/0.5849, allocations: 183.7 kB / 0.5036 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006684/0.5916, allocations: 3.235 MB / 0.5068 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.5936, allocations: 199.7 kB / 0.5069 GB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.5937, allocations: 52.03 kB / 0.507 GB, free: 10.5 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.000385/0.5941, allocations: 147.9 kB / 0.5071 GB, free: 10.35 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.5943, allocations: 75.06 kB / 0.5072 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02133/0.6156, allocations: 4.782 MB / 0.5119 GB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.387e-05/0.6157, allocations: 19.89 kB / 0.5119 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.6157, allocations: 4 kB / 0.5119 GB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.891e-05/0.6157, allocations: 7.922 kB / 0.5119 GB, free: 5.445 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.6176, allocations: 1.002 MB / 0.5129 GB, free: 4.402 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.6176, allocations: 3.984 kB / 0.5129 GB, free: 4.398 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006349/0.6182, allocations: 127.9 kB / 0.513 GB, free: 4.273 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0225/0.6408, allocations: 4.8 MB / 0.5177 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002862/0.6411, allocations: 15.97 kB / 0.5177 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006802/0.6479, allocations: 3.224 MB / 0.5209 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.648, allocations: 0 / 0.5209 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02226/0.6702, allocations: 5.428 MB / 0.5262 GB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003667/0.6707, allocations: 144.2 kB / 0.5263 GB, free: 6.543 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00041/0.6711, allocations: 0 / 0.5263 GB, free: 6.543 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/0.6729, allocations: 203.8 kB / 0.5265 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003233/0.6732, allocations: 104.6 kB / 0.5266 GB, free: 6.242 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.6734, allocations: 31.98 kB / 0.5266 GB, free: 6.211 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00053/0.6739, allocations: 314.9 kB / 0.5269 GB, free: 5.902 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6739, allocations: 4 kB / 0.5269 GB, free: 5.898 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001016/0.6749, allocations: 231.9 kB / 0.5272 GB, free: 5.672 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.0003442/0.6753, allocations: 128.3 kB / 0.5273 GB, free: 5.539 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004456/0.6798, allocations: 1.608 MB / 0.5288 GB, free: 3.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.6798, allocations: 0.5 kB / 0.5288 GB, free: 3.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003494/0.6833, allocations: 0.9384 MB / 0.5298 GB, free: 2.977 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/0.6847, allocations: 89.92 kB / 0.5298 GB, free: 2.883 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003592/0.6884, allocations: 1.185 MB / 0.531 GB, free: 1.672 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000631/0.689, allocations: 0.9624 MB / 0.5319 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003707/0.6894, allocations: 58.22 kB / 0.532 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.6895, allocations: 31.44 kB / 0.532 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of SimCode: time 7.72e-07/0.6896, allocations: 0 / 0.532 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of Templates: time 0.2615/0.9511, allocations: 19.11 MB / 0.5507 GB, free: 137.4 MB / 426.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