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.00109/0.00109, allocations: 158 kB / 7.633 MB, free: 1.445 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.18/1.18, allocations: 170.7 MB / 178.7 MB, free: 7.039 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.001602/0.001602, allocations: 110.5 kB / 218 MB, free: 15.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.897e-05/1.898e-05, allocations: 4 kB / 262.2 MB, free: 3.066 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2061, allocations: 38.77 MB / 301 MB, free: 39.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08176/0.2879, allocations: 70.85 MB / 371.8 MB, free: 8.809 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.2882, allocations: 67.97 kB / 371.9 MB, free: 8.742 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04312/0.3313, allocations: 13.87 MB / 385.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3314, allocations: 4 kB / 385.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.244e-05/0.3314, allocations: 12 kB / 385.8 MB, free: 10.9 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.004178/0.3356, allocations: 1.338 MB / 387.1 MB, free: 9.504 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.3357, allocations: 9.25 kB / 387.1 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004558/0.3361, allocations: 86.97 kB / 387.2 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001619/0.3378, allocations: 0.5818 MB / 387.8 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.3378, allocations: 20 kB / 387.8 MB, free: 8.762 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/0.338, allocations: 39.94 kB / 387.8 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001217/0.3393, allocations: 0.5962 MB / 388.4 MB, free: 8.129 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.3404, allocations: 0.535 MB / 389 MB, free: 7.586 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.3404, allocations: 0 / 389 MB, free: 7.586 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.558e-05/0.3405, allocations: 4 kB / 389 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.3405, allocations: 16 kB / 389 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004435/0.345, allocations: 2.256 MB / 391.3 MB, free: 5.242 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008288/0.3458, allocations: 496.1 kB / 391.7 MB, free: 4.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004297/0.3463, allocations: 282.1 kB / 392 MB, free: 4.473 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.735e-05/0.3464, allocations: 9.734 kB / 392 MB, free: 4.465 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006777/0.3471, allocations: 386.9 kB / 392.4 MB, free: 4.062 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.635e-06/0.3471, allocations: 3.938 kB / 392.4 MB, free: 4.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.04457/0.3916, allocations: 10.4 MB / 402.8 MB, free: 9.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.3918, allocations: 141.3 kB / 402.9 MB, free: 9.422 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000685/0.3925, allocations: 418.2 kB / 403.4 MB, free: 9.008 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002962/0.3928, allocations: 25.7 kB / 403.4 MB, free: 8.977 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003499/0.3932, allocations: 379.8 kB / 403.7 MB, free: 8.598 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004492/0.3937, allocations: 303.5 kB / 404 MB, free: 8.297 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.3938, allocations: 0 / 404 MB, free: 8.297 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002108/0.394, allocations: 386.8 kB / 404.4 MB, free: 7.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.3951, allocations: 0.526 MB / 404.9 MB, free: 7.383 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.3963, allocations: 0.7285 MB / 405.7 MB, free: 6.578 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.3976, allocations: 0.5654 MB / 406.2 MB, free: 6.016 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.3976, allocations: 1.406 kB / 406.2 MB, free: 6.016 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02648/0.4241, allocations: 6.061 MB / 412.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.703e-05/0.4242, allocations: 63.41 kB / 412.4 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.543e-05/0.4243, allocations: 8 kB / 412.4 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02938/0.4537, allocations: 5.986 MB / 418.4 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008459/0.4545, allocations: 183.7 kB / 418.5 MB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006772/0.4613, allocations: 3.181 MB / 421.7 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002276/0.4637, allocations: 279.7 kB / 422 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002477/0.4639, allocations: 43.97 kB / 422 MB, free: 6.121 MB / 330.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.0004604/0.4644, allocations: 134.6 kB / 422.2 MB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002405/0.4647, allocations: 79.06 kB / 422.2 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02134/0.486, allocations: 4.656 MB / 426.9 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.38e-05/0.4861, allocations: 12 kB / 426.9 MB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.4861, allocations: 4 kB / 426.9 MB, free: 1.215 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.679e-05/0.4861, allocations: 3.984 kB / 426.9 MB, free: 1.211 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1726/0.6588, allocations: 1.166 MB / 428.1 MB, free: 100.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.389e-05/0.6588, allocations: 0.8125 kB / 428.1 MB, free: 100.6 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007472/0.6596, allocations: 122.1 kB / 428.2 MB, free: 100.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02741/0.687, allocations: 5.979 MB / 434.2 MB, free: 100.6 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002369/0.6873, allocations: 18.45 kB / 434.2 MB, free: 100.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02324/0.7105, allocations: 8.685 MB / 442.9 MB, free: 97.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.7106, allocations: 0 / 442.9 MB, free: 97.38 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02071/0.7313, allocations: 5.394 MB / 448.3 MB, free: 96.1 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/0.7316, allocations: 144.5 kB / 448.4 MB, free: 95.96 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003736/0.732, allocations: 3.531 kB / 448.4 MB, free: 95.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001873/0.7339, allocations: 272.6 kB / 448.7 MB, free: 95.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004679/0.7344, allocations: 139.8 kB / 448.8 MB, free: 95.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/0.7345, allocations: 28.8 kB / 448.9 MB, free: 95.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003394/0.7348, allocations: 309.9 kB / 449.2 MB, free: 95.75 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7348, allocations: 0 / 449.2 MB, free: 95.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001191/0.736, allocations: 296.2 kB / 449.5 MB, free: 95.75 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.0003023/0.7364, allocations: 118.4 kB / 449.6 MB, free: 95.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003274/0.7396, allocations: 1.619 MB / 451.2 MB, free: 94.96 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7397, allocations: 0 / 451.2 MB, free: 94.96 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003508/0.7432, allocations: 1.248 MB / 452.4 MB, free: 94.43 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007038/0.7439, allocations: 96.17 kB / 452.5 MB, free: 94.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005469/0.7494, allocations: 1.839 MB / 454.4 MB, free: 93.81 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.7498, allocations: 0.9738 MB / 455.3 MB, free: 93.1 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003895/0.7503, allocations: 56.39 kB / 455.4 MB, free: 93.08 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.7504, allocations: 31.09 kB / 455.4 MB, free: 93.07 MB / 330.7 MB Notification: Performance of SimCode: time 3.577e-06/0.7504, allocations: 0 / 455.4 MB, free: 93.07 MB / 330.7 MB Notification: Performance of Templates: time 0.03743/0.7878, allocations: 27.44 MB / 482.9 MB, free: 67.65 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)