Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") [: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 3.2.2+maint.om/package.mo): time 0.001149/0.001149, allocations: 189.6 kB / 8.134 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.2/1.2, allocations: 194.2 MB / 202.8 MB, free: 8.766 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001798/0.001798, allocations: 117.4 kB / 247.7 MB, free: 6.227 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.502e-06/6.612e-06, allocations: 0 / 297.6 MB, free: 8.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07965/0.07967, allocations: 44.5 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1969/0.2766, allocations: 75.9 MB / 418 MB, free: 19.27 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001693/0.2768, allocations: 69.47 kB / 418 MB, free: 19.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.04119/0.318, allocations: 13.73 MB / 431.8 MB, free: 7.504 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.133e-05/0.3181, allocations: 16 kB / 431.8 MB, free: 7.488 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.003542/0.3217, allocations: 1.366 MB / 433.1 MB, free: 6.109 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.3217, allocations: 8.031 kB / 433.1 MB, free: 6.102 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.3219, allocations: 91.84 kB / 433.2 MB, free: 6.012 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.3231, allocations: 0.5896 MB / 433.8 MB, free: 5.465 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.192e-05/0.3232, allocations: 20 kB / 433.8 MB, free: 5.445 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.3233, allocations: 40.75 kB / 433.9 MB, free: 5.406 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009786/0.3242, allocations: 0.5952 MB / 434.5 MB, free: 5.047 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008769/0.3251, allocations: 0.5306 MB / 435 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.3252, allocations: 4 kB / 435 MB, free: 4.668 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.727e-05/0.3252, allocations: 7.906 kB / 435 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.3253, allocations: 16.92 kB / 435 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00385/0.3291, allocations: 2.58 MB / 437.6 MB, free: 2.457 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006997/0.3298, allocations: 453.5 kB / 438.1 MB, free: 2.172 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003843/0.3302, allocations: 276.7 kB / 438.3 MB, free: 2.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.652e-05/0.3303, allocations: 15.98 kB / 438.3 MB, free: 2.008 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004903/0.3308, allocations: 365.8 kB / 438.7 MB, free: 1.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 2.315e-06/0.3308, allocations: 3.938 kB / 438.7 MB, free: 1.727 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.05307/0.3839, allocations: 10.61 MB / 449.3 MB, free: 8.418 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.857e-05/0.384, allocations: 140.1 kB / 449.4 MB, free: 8.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005612/0.3845, allocations: 413.2 kB / 449.8 MB, free: 7.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001768/0.3847, allocations: 29.27 kB / 449.9 MB, free: 7.898 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.3849, allocations: 309.7 kB / 450.2 MB, free: 7.621 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000289/0.3852, allocations: 306 kB / 450.5 MB, free: 7.355 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.969e-05/0.3853, allocations: 0 / 450.5 MB, free: 7.355 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3855, allocations: 385.4 kB / 450.9 MB, free: 7 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000892/0.3864, allocations: 0.5196 MB / 451.4 MB, free: 6.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.3875, allocations: 0.7237 MB / 452.1 MB, free: 6.199 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.3886, allocations: 0.5729 MB / 452.7 MB, free: 5.863 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3887, allocations: 0 / 452.7 MB, free: 5.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03291/0.4216, allocations: 6.159 MB / 458.8 MB, free: 404 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.4216, allocations: 8 kB / 458.8 MB, free: 396 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/0.4216, allocations: 4 kB / 458.8 MB, free: 392 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03414/0.4558, allocations: 6.131 MB / 465 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008478/0.4567, allocations: 207.9 kB / 465.2 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00635/0.463, allocations: 3.291 MB / 468.5 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002422/0.4655, allocations: 303.6 kB / 468.8 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.4657, allocations: 43.97 kB / 468.8 MB, free: 7.695 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vbc:DUMMY_DER(fixed = false ) type: Real $DER.T1.vbe:DUMMY_DER(fixed = false ) type: Real $DER.T1.vbc:DUMMY_DER(fixed = false ) type: Real $DER.T1.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real $DER.T2.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: 23 * 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.0003686/0.466, allocations: 133.6 kB / 468.9 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.4662, allocations: 75.06 kB / 469 MB, free: 7.484 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02466/0.4909, allocations: 4.746 MB / 473.8 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.955e-05/0.4909, allocations: 8 kB / 473.8 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.491, allocations: 0 / 473.8 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.976e-05/0.491, allocations: 7.984 kB / 473.8 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001691/0.4927, allocations: 1.163 MB / 474.9 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.4927, allocations: 4 kB / 474.9 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006794/0.4934, allocations: 139.8 kB / 475.1 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03349/0.5269, allocations: 6.12 MB / 481.2 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002174/0.5271, allocations: 12.53 kB / 481.2 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02733/0.5545, allocations: 8.627 MB / 489.8 MB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.5545, allocations: 4 kB / 489.8 MB, free: 2.438 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02585/0.5804, allocations: 5.473 MB / 495.3 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006047/0.581, allocations: 288 kB / 495.6 MB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002344/0.5813, allocations: 3.938 kB / 495.6 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002215/0.5835, allocations: 295.8 kB / 495.9 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002849/0.5838, allocations: 106.4 kB / 496 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.584, allocations: 27.97 kB / 496 MB, free: 12.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004052/0.5844, allocations: 307 kB / 496.3 MB, free: 11.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001176/0.5856, allocations: 288 kB / 496.6 MB, free: 11.62 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.0002691/0.5858, allocations: 115.2 kB / 496.7 MB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003836/0.5897, allocations: 1.568 MB / 498.3 MB, free: 9.918 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5897, allocations: 0 / 498.3 MB, free: 9.918 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00423/0.5939, allocations: 1.169 MB / 499.4 MB, free: 8.742 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005823/0.5945, allocations: 88.09 kB / 499.5 MB, free: 8.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007522/0.6021, allocations: 2.087 MB / 0.4899 GB, free: 6.547 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006817/0.6028, allocations: 1.008 MB / 0.4908 GB, free: 5.512 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.6028, allocations: 0 / 0.4908 GB, free: 5.512 MB / 378.7 MB Notification: Performance of Templates: time 0.1336/0.7364, allocations: 28 MB / 0.5182 GB, free: 166.4 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)