Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_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.001195/0.001195, allocations: 195.4 kB / 8.539 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000965/0.000965, allocations: 93.41 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.676e-06/8.706e-06, allocations: 0 / 343.1 MB, free: 8.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09582, allocations: 51.48 MB / 394.6 MB, free: 5.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2519/0.3477, allocations: 83.02 MB / 477.6 MB, free: 10 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000154/0.3479, allocations: 69.47 kB / 477.7 MB, free: 9.977 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0312/0.3791, allocations: 12.48 MB / 490.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.203e-05/0.3792, allocations: 19.98 kB / 490.2 MB, free: 15.7 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.002208/0.3814, allocations: 1.104 MB / 491.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.3815, allocations: 8.031 kB / 491.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.3816, allocations: 90.97 kB / 491.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008297/0.3825, allocations: 0.512 MB / 491.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/0.3825, allocations: 20 kB / 491.9 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.581e-05/0.3826, allocations: 43.94 kB / 492 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008885/0.3835, allocations: 0.5053 MB / 492.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008269/0.3843, allocations: 489.5 kB / 493 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.3844, allocations: 0 / 493 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.634e-05/0.3844, allocations: 4 kB / 493 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.3845, allocations: 15.94 kB / 493 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003834/0.3883, allocations: 2.264 MB / 495.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006977/0.389, allocations: 405.2 kB / 495.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003312/0.3894, allocations: 242.8 kB / 495.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.151e-05/0.3894, allocations: 8.422 kB / 495.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004307/0.3899, allocations: 319.4 kB / 496.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.844e-06/0.3899, allocations: 0 / 496.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.06699/0.4569, allocations: 14.28 MB / 0.4985 GB, free: 13.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.414e-05/0.457, allocations: 138 kB / 0.4986 GB, free: 13.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005404/0.4575, allocations: 427.2 kB / 0.499 GB, free: 13.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001881/0.4577, allocations: 29.7 kB / 0.4991 GB, free: 13.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.4579, allocations: 306.7 kB / 0.4994 GB, free: 12.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002512/0.4582, allocations: 301.6 kB / 0.4997 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.904e-05/0.4583, allocations: 4 kB / 0.4997 GB, free: 12.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4584, allocations: 388.4 kB / 0.5 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007643/0.4592, allocations: 459.7 kB / 0.5005 GB, free: 11.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008646/0.4601, allocations: 0.6738 MB / 0.5011 GB, free: 11.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.4621, allocations: 0.7042 MB / 0.5018 GB, free: 10.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.4621, allocations: 0 / 0.5018 GB, free: 10.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02451/0.4866, allocations: 5.02 MB / 0.5067 GB, free: 6.043 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.4867, allocations: 8.125 kB / 0.5067 GB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.121e-05/0.4867, allocations: 11.05 kB / 0.5067 GB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02593/0.5127, allocations: 4.933 MB / 0.5116 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008713/0.5136, allocations: 195.7 kB / 0.5117 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00684/0.5204, allocations: 3.235 MB / 0.5149 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/0.5225, allocations: 227.7 kB / 0.5151 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002071/0.5227, allocations: 52.84 kB / 0.5152 GB, free: 13.33 MB / 394.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.0004826/0.5232, allocations: 136.4 kB / 0.5153 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.5234, allocations: 80.92 kB / 0.5154 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0235/0.547, allocations: 4.908 MB / 0.5202 GB, free: 8.188 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.345e-05/0.547, allocations: 12 kB / 0.5202 GB, free: 8.176 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.5471, allocations: 0 / 0.5202 GB, free: 8.176 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.209e-05/0.5471, allocations: 8.609 kB / 0.5202 GB, free: 8.168 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.5489, allocations: 1.007 MB / 0.5212 GB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.5489, allocations: 8.828 kB / 0.5212 GB, free: 7.121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006507/0.5496, allocations: 135.9 kB / 0.5213 GB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0258/0.5754, allocations: 4.941 MB / 0.5261 GB, free: 2.035 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003051/0.5757, allocations: 20.84 kB / 0.5262 GB, free: 2.016 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00649/0.5822, allocations: 3.229 MB / 0.5293 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.5823, allocations: 3.906 kB / 0.5293 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0242/0.6065, allocations: 5.559 MB / 0.5347 GB, free: 9.133 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002568/0.6068, allocations: 140.9 kB / 0.5349 GB, free: 8.977 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003707/0.6071, allocations: 7.984 kB / 0.5349 GB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001762/0.6089, allocations: 226.2 kB / 0.5351 GB, free: 8.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003075/0.6092, allocations: 96.62 kB / 0.5352 GB, free: 8.656 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/0.6094, allocations: 35.97 kB / 0.5352 GB, free: 8.621 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004872/0.6099, allocations: 314.9 kB / 0.5355 GB, free: 8.316 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009927/0.6109, allocations: 232 kB / 0.5357 GB, free: 8.09 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.00036/0.6113, allocations: 127.5 kB / 0.5359 GB, free: 7.961 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003478/0.6148, allocations: 1.404 MB / 0.5372 GB, free: 6.543 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6148, allocations: 448 / 0.5372 GB, free: 6.543 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002318/0.6171, allocations: 0.7963 MB / 0.538 GB, free: 5.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007533/0.6179, allocations: 84.2 kB / 0.5381 GB, free: 5.672 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003636/0.6215, allocations: 1.314 MB / 0.5394 GB, free: 4.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000738/0.6223, allocations: 1.008 MB / 0.5404 GB, free: 3.289 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/0.6223, allocations: 0 / 0.5404 GB, free: 3.289 MB / 410.7 MB Notification: Performance of Templates: time 0.031/0.6533, allocations: 20.7 MB / 0.5606 GB, free: 14.75 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches