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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.008629/0.008629, allocations: 165.6 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.42/1.42, allocations: 170.8 MB / 186.6 MB, free: 1.121 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.001864/0.001864, allocations: 114.6 kB / 226.2 MB, free: 8.004 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003332, allocations: 11.98 kB / 274.1 MB, free: 7.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1917, allocations: 38.76 MB / 312.9 MB, free: 24.26 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0939/0.2857, allocations: 71.59 MB / 384.5 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/0.2859, allocations: 71.95 kB / 384.6 MB, free: 500 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04412/0.3301, allocations: 14 MB / 398.6 MB, free: 2.434 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3301, allocations: 0 / 398.6 MB, free: 2.434 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.107e-05/0.3302, allocations: 12 kB / 398.6 MB, free: 2.422 MB / 298.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.004222/0.3344, allocations: 1.424 MB / 400 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.3345, allocations: 12.03 kB / 400 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003246/0.3348, allocations: 86.97 kB / 400.1 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/0.3363, allocations: 0.5796 MB / 400.7 MB, free: 216 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.596e-05/0.3364, allocations: 49.31 kB / 400.7 MB, free: 168 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001678/0.3365, allocations: 60 kB / 400.8 MB, free: 108 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1655/0.502, allocations: 0.8577 MB / 401.6 MB, free: 74.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.95e-05/0.5021, allocations: 2.375 kB / 401.6 MB, free: 74.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.062e-05/0.5022, allocations: 24.59 kB / 401.7 MB, free: 74.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.49e-05/0.5022, allocations: 15.72 kB / 401.7 MB, free: 74.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003098/0.5053, allocations: 1.1 MB / 402.8 MB, free: 74.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004978/0.5103, allocations: 2.362 MB / 405.1 MB, free: 74.06 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002188/0.5125, allocations: 0.8701 MB / 406 MB, free: 74.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.761e-05/0.5126, allocations: 7.781 kB / 406 MB, free: 74.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001426/0.514, allocations: 0.6318 MB / 406.6 MB, free: 73.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.224e-06/0.514, allocations: 0 / 406.6 MB, free: 73.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06044/0.5745, allocations: 15.4 MB / 422 MB, free: 65.99 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.781e-05/0.5746, allocations: 145.5 kB / 422.2 MB, free: 65.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006576/0.5753, allocations: 452.4 kB / 422.6 MB, free: 65.37 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002874/0.5756, allocations: 45.7 kB / 422.7 MB, free: 65.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002756/0.5759, allocations: 381 kB / 423 MB, free: 64.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000377/0.5763, allocations: 316.4 kB / 423.4 MB, free: 64.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.5764, allocations: 24 kB / 423.4 MB, free: 64.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.5765, allocations: 385.5 kB / 423.8 MB, free: 64.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002536/0.579, allocations: 1.007 MB / 424.8 MB, free: 63.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002374/0.5814, allocations: 1.219 MB / 426 MB, free: 61.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002358/0.5838, allocations: 1.094 MB / 427.1 MB, free: 60.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.5838, allocations: 0 / 427.1 MB, free: 60.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03014/0.614, allocations: 7.407 MB / 434.5 MB, free: 53.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.166e-05/0.6141, allocations: 67.39 kB / 434.5 MB, free: 53.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-05/0.6142, allocations: 8 kB / 434.6 MB, free: 53.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03179/0.646, allocations: 6.722 MB / 441.3 MB, free: 46.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007465/0.6468, allocations: 183.7 kB / 441.5 MB, free: 46.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006951/0.6537, allocations: 3.719 MB / 445.2 MB, free: 42.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002205/0.656, allocations: 299.6 kB / 445.5 MB, free: 42.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001843/0.6562, allocations: 47.97 kB / 445.5 MB, free: 42.32 MB / 298.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.0006461/0.6568, allocations: 225.7 kB / 445.7 MB, free: 42.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002411/0.6571, allocations: 79.06 kB / 445.8 MB, free: 42.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02398/0.6811, allocations: 5.955 MB / 451.8 MB, free: 36.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.6812, allocations: 8.875 kB / 451.8 MB, free: 36.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.6812, allocations: 0 / 451.8 MB, free: 36.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.38e-05/0.6812, allocations: 3.984 kB / 451.8 MB, free: 36.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/0.6831, allocations: 1.263 MB / 453 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.6831, allocations: 4 kB / 453 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005548/0.6836, allocations: 123.9 kB / 453.2 MB, free: 34.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.048/0.7317, allocations: 6.685 MB / 459.8 MB, free: 27.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003523/0.7321, allocations: 27.97 kB / 459.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03075/0.7628, allocations: 10.87 MB / 470.7 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.7629, allocations: 0 / 470.7 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02705/0.79, allocations: 7.136 MB / 477.9 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003687/0.7904, allocations: 144.2 kB / 478 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00036/0.7908, allocations: 20 kB / 478 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001915/0.7927, allocations: 283.8 kB / 478.3 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005262/0.7932, allocations: 148.5 kB / 478.5 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/0.7934, allocations: 35.97 kB / 478.5 MB, free: 9.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004042/0.7938, allocations: 342.9 kB / 478.8 MB, free: 8.738 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7938, allocations: 0 / 478.8 MB, free: 8.738 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001223/0.795, allocations: 330.5 kB / 479.2 MB, free: 8.418 MB / 298.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.0003195/0.7954, allocations: 130.5 kB / 479.3 MB, free: 8.285 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.006603/0.802, allocations: 2.615 MB / 481.9 MB, free: 5.645 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.802, allocations: 0 / 481.9 MB, free: 5.645 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005484/0.8075, allocations: 1.77 MB / 483.7 MB, free: 3.863 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007058/0.8083, allocations: 112.1 kB / 483.8 MB, free: 3.754 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007113/0.8154, allocations: 2.891 MB / 486.7 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003844/0.8158, allocations: 0.9703 MB / 487.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003511/0.8162, allocations: 57.05 kB / 487.7 MB, free: 15.81 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.8163, allocations: 31.44 kB / 487.7 MB, free: 15.78 MB / 314.7 MB Notification: Performance of SimCode: time 1.102e-06/0.8163, allocations: 0 / 487.7 MB, free: 15.78 MB / 314.7 MB Notification: Performance of Templates: time 0.04547/0.8618, allocations: 28.28 MB / 0.5039 GB, free: 3.469 MB / 330.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)