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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001099/0.001099, allocations: 180.9 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.182/1.182, allocations: 194.5 MB / 211.6 MB, free: 3.059 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.001555/0.001555, allocations: 122.5 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003349/0.000335, allocations: 11.98 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07169/0.07204, allocations: 44.5 MB / 355.1 MB, free: 2.348 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2171/0.2891, allocations: 76.74 MB / 431.8 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.2894, allocations: 70.23 kB / 431.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03625/0.3256, allocations: 13.93 MB / 445.8 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3257, allocations: 0 / 445.8 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.923e-05/0.3257, allocations: 16.66 kB / 445.8 MB, free: 0.8242 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.003652/0.3294, allocations: 1.406 MB / 447.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3294, allocations: 12.03 kB / 447.2 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002951/0.3297, allocations: 90.92 kB / 447.3 MB, free: 15.31 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001334/0.3311, allocations: 0.5803 MB / 447.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.21e-05/0.3311, allocations: 47.38 kB / 447.9 MB, free: 14.74 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.3313, allocations: 65.06 kB / 448 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001875/0.3331, allocations: 0.8565 MB / 448.9 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.3332, allocations: 4 kB / 448.9 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-05/0.3333, allocations: 29.12 kB / 448.9 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.3333, allocations: 12 kB / 448.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002616/0.3359, allocations: 1.108 MB / 450 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003885/0.3398, allocations: 2.353 MB / 452.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002065/0.3419, allocations: 0.8684 MB / 453.2 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.342, allocations: 8.438 kB / 453.2 MB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001419/0.3434, allocations: 0.6184 MB / 453.9 MB, free: 9.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=54): time 3.737e-06/0.3434, allocations: 0 / 453.9 MB, free: 9.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.05968/0.4031, allocations: 15.34 MB / 469.2 MB, free: 9.711 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.493e-05/0.4032, allocations: 146.3 kB / 469.3 MB, free: 9.539 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006519/0.4039, allocations: 450 kB / 469.8 MB, free: 9.094 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002222/0.4041, allocations: 41.7 kB / 469.8 MB, free: 9.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002869/0.4044, allocations: 379.8 kB / 470.2 MB, free: 8.668 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003263/0.4048, allocations: 311.4 kB / 470.5 MB, free: 8.359 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.335e-05/0.4049, allocations: 24 kB / 470.5 MB, free: 8.336 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.405, allocations: 382.8 kB / 470.9 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002549/0.4076, allocations: 1.009 MB / 471.9 MB, free: 6.941 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0026/0.4102, allocations: 1.22 MB / 473.1 MB, free: 5.648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002483/0.4127, allocations: 1.092 MB / 474.2 MB, free: 4.543 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.4127, allocations: 7.938 kB / 474.2 MB, free: 4.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03032/0.443, allocations: 7.375 MB / 481.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.349e-05/0.4431, allocations: 59.41 kB / 481.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.4432, allocations: 8.125 kB / 481.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03166/0.4748, allocations: 6.7 MB / 488.4 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00074/0.4756, allocations: 187.6 kB / 488.5 MB, free: 6.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007361/0.483, allocations: 3.703 MB / 492.2 MB, free: 2.395 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/0.4851, allocations: 291.8 kB / 492.5 MB, free: 2.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.4853, allocations: 51.97 kB / 492.6 MB, free: 2.059 MB / 362.7 MB 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 () * Number of clocked 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.0004684/0.4857, allocations: 213.7 kB / 492.8 MB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.4859, allocations: 79.06 kB / 492.9 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02475/0.5107, allocations: 5.95 MB / 498.8 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-05/0.5108, allocations: 12 kB / 498.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.5108, allocations: 0 / 498.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.438e-05/0.5108, allocations: 3.984 kB / 498.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/0.5126, allocations: 1.249 MB / 0.4884 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.5126, allocations: 3.953 kB / 0.4884 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000568/0.5132, allocations: 119.9 kB / 0.4885 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0318/0.545, allocations: 6.677 MB / 0.495 GB, free: 3.664 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000259/0.5453, allocations: 22.05 kB / 0.495 GB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03002/0.5754, allocations: 10.8 MB / 0.5056 GB, free: 8.672 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.5754, allocations: 6.875 kB / 0.5056 GB, free: 8.668 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02746/0.6029, allocations: 7.131 MB / 0.5125 GB, free: 1.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000569/0.6035, allocations: 279.9 kB / 0.5128 GB, free: 1.207 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002139/0.6037, allocations: 27.94 kB / 0.5128 GB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001865/0.6056, allocations: 283.8 kB / 0.5131 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004768/0.6061, allocations: 140.8 kB / 0.5132 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.6062, allocations: 35.97 kB / 0.5133 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004348/0.6067, allocations: 342.8 kB / 0.5136 GB, free: 408 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6067, allocations: 0 / 0.5136 GB, free: 408 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.00104/0.6077, allocations: 328 kB / 0.5139 GB, free: 80 kB / 394.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) * Number of clocked states: 0 () * 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.1176/0.7253, allocations: 123.8 kB / 0.514 GB, free: 128 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006598/0.7319, allocations: 2.602 MB / 0.5166 GB, free: 127.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.732, allocations: 3.688 kB / 0.5166 GB, free: 127.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004858/0.7368, allocations: 1.756 MB / 0.5183 GB, free: 127.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005638/0.7374, allocations: 115.8 kB / 0.5184 GB, free: 127.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006187/0.7436, allocations: 2.888 MB / 0.5212 GB, free: 126.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.7439, allocations: 0.9654 MB / 0.5222 GB, free: 126.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002576/0.7441, allocations: 59.61 kB / 0.5222 GB, free: 126.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.7442, allocations: 36.03 kB / 0.5223 GB, free: 126.2 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/0.7442, allocations: 2.406 kB / 0.5223 GB, free: 126.2 MB / 394.7 MB Notification: Performance of Templates: time 0.03326/0.7775, allocations: 28.15 MB / 0.5498 GB, free: 116.1 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)