Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_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.1_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.1+maint.om/package.mo): time 0.003341/0.003341, allocations: 172.8 kB / 7.448 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.155/1.155, allocations: 170.6 MB / 178.4 MB, free: 15.46 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001709/0.001708, allocations: 116.4 kB / 217.7 MB, free: 8.227 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.897e-06/8.937e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07612/0.07614, allocations: 38.77 MB / 300.5 MB, free: 3.902 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.252/0.3282, allocations: 70.77 MB / 371.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.3285, allocations: 66.91 kB / 371.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.04741/0.3759, allocations: 13.8 MB / 385.1 MB, free: 1.863 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.05e-05/0.376, allocations: 20 kB / 385.2 MB, free: 1.844 MB / 266.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.004957/0.381, allocations: 1.366 MB / 386.5 MB, free: 480 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.3811, allocations: 12.02 kB / 386.5 MB, free: 468 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005377/0.3816, allocations: 94.97 kB / 386.6 MB, free: 372 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00201/0.3837, allocations: 0.5869 MB / 387.2 MB, free: 15.81 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.483e-05/0.3837, allocations: 19.94 kB / 387.2 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002284/0.384, allocations: 43 kB / 387.3 MB, free: 15.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001414/0.3854, allocations: 0.5933 MB / 387.9 MB, free: 15.4 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.3867, allocations: 0.5348 MB / 388.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.3867, allocations: 4 kB / 388.4 MB, free: 15.01 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-05/0.3868, allocations: 0 / 388.4 MB, free: 15.01 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/0.3868, allocations: 19.91 kB / 388.4 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005347/0.3922, allocations: 2.577 MB / 391 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009087/0.3931, allocations: 459.3 kB / 391.5 MB, free: 12.51 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004939/0.3937, allocations: 286.6 kB / 391.7 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.247e-05/0.3937, allocations: 12.42 kB / 391.7 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000627/0.3944, allocations: 362.9 kB / 392.1 MB, free: 12.06 MB / 282.7 MB Notification: Performance of pre-optimization done (n=54): time 4.138e-06/0.3944, allocations: 0 / 392.1 MB, free: 12.06 MB / 282.7 MB Notification: Performance of matching and sorting (n=94): time 0.05342/0.4478, allocations: 10.65 MB / 402.8 MB, free: 2.715 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.448, allocations: 153 kB / 402.9 MB, free: 2.539 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007975/0.4488, allocations: 415.9 kB / 403.3 MB, free: 2.215 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004271/0.4492, allocations: 25.7 kB / 403.3 MB, free: 2.184 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004459/0.4497, allocations: 308.2 kB / 403.6 MB, free: 1.91 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006702/0.4504, allocations: 304.1 kB / 403.9 MB, free: 1.645 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/0.4506, allocations: 0 / 403.9 MB, free: 1.645 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002697/0.4509, allocations: 387.6 kB / 404.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00127/0.4522, allocations: 0.5285 MB / 404.8 MB, free: 1.004 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/0.4534, allocations: 0.728 MB / 405.6 MB, free: 488 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001326/0.4547, allocations: 0.5611 MB / 406.1 MB, free: 156 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.4547, allocations: 4 kB / 406.1 MB, free: 152 kB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03226/0.487, allocations: 6.181 MB / 412.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.4871, allocations: 4 kB / 412.3 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.981e-05/0.4871, allocations: 8 kB / 412.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03252/0.5197, allocations: 6.15 MB / 418.5 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000917/0.5206, allocations: 191.8 kB / 418.7 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007613/0.5283, allocations: 3.329 MB / 422 MB, free: 0.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0027/0.5311, allocations: 303.6 kB / 422.3 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002745/0.5314, allocations: 47.97 kB / 422.3 MB, free: 0.5742 MB / 298.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.0005336/0.5319, allocations: 125.4 kB / 422.5 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/0.5322, allocations: 83.05 kB / 422.5 MB, free: 372 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02458/0.5568, allocations: 4.757 MB / 427.3 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.539e-05/0.5569, allocations: 11.98 kB / 427.3 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.5569, allocations: 4 kB / 427.3 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.209e-05/0.557, allocations: 7.891 kB / 427.3 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.5592, allocations: 1.146 MB / 428.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.5593, allocations: 0 / 428.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000683/0.5599, allocations: 147.9 kB / 428.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03233/0.5923, allocations: 6.154 MB / 434.8 MB, free: 4.059 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003322/0.5927, allocations: 3.984 kB / 434.8 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02698/0.6197, allocations: 8.687 MB / 443.5 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.6197, allocations: 0 / 443.5 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02509/0.6448, allocations: 5.505 MB / 449 MB, free: 5.676 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.6452, allocations: 144.2 kB / 449.1 MB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004185/0.6456, allocations: 4 kB / 449.1 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002156/0.6478, allocations: 291.8 kB / 449.4 MB, free: 5.227 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003115/0.6481, allocations: 100.6 kB / 449.5 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/0.6483, allocations: 31.97 kB / 449.5 MB, free: 5.098 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0004443/0.6488, allocations: 311 kB / 449.8 MB, free: 4.793 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001283/0.65, allocations: 291.9 kB / 450.1 MB, free: 4.508 MB / 330.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.0003333/0.6504, allocations: 126.2 kB / 450.2 MB, free: 4.379 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003806/0.6542, allocations: 1.567 MB / 451.8 MB, free: 2.805 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.6542, allocations: 0 / 451.8 MB, free: 2.805 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003957/0.6582, allocations: 1.174 MB / 453 MB, free: 1.617 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.6588, allocations: 85.95 kB / 453.1 MB, free: 1.535 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007362/0.6662, allocations: 2.101 MB / 455.2 MB, free: 15.4 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007258/0.6669, allocations: 1 MB / 456.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of SimCode: time 4.2e-07/0.6669, allocations: 0 / 456.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of Templates: time 0.1783/0.8453, allocations: 28.12 MB / 484.3 MB, free: 152.4 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)