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.001033/0.001033, allocations: 188.6 kB / 8.353 MB, free: 0.707 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.432/1.432, allocations: 194.3 MB / 203.1 MB, free: 9.254 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001755/0.001755, allocations: 121.9 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.536e-05/1.539e-05, allocations: 4 kB / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08828/0.08831, allocations: 44.5 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3021/0.3905, allocations: 75.98 MB / 418.6 MB, free: 19.87 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.3907, allocations: 70.38 kB / 418.6 MB, free: 19.84 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03983/0.4306, allocations: 13.8 MB / 432.4 MB, free: 8.031 MB / 315.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4306, allocations: 0.6562 kB / 432.4 MB, free: 8.031 MB / 315.1 MB Notification: Performance of Transformations before backend: time 6.002e-05/0.4307, allocations: 20 kB / 432.4 MB, free: 8.012 MB / 315.1 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.004041/0.4347, allocations: 1.317 MB / 433.8 MB, free: 6.688 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.4348, allocations: 8.031 kB / 433.8 MB, free: 6.68 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003921/0.4352, allocations: 86.97 kB / 433.9 MB, free: 6.594 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001442/0.4367, allocations: 0.5885 MB / 434.4 MB, free: 6.051 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/0.4367, allocations: 23.98 kB / 434.5 MB, free: 6.027 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.4369, allocations: 40.75 kB / 434.5 MB, free: 5.988 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001115/0.438, allocations: 0.594 MB / 435.1 MB, free: 5.637 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.4391, allocations: 0.5328 MB / 435.6 MB, free: 5.254 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.4391, allocations: 7.984 kB / 435.6 MB, free: 5.246 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.721e-05/0.4392, allocations: 0 / 435.6 MB, free: 5.246 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.4392, allocations: 23.95 kB / 435.7 MB, free: 5.223 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004163/0.4434, allocations: 2.242 MB / 437.9 MB, free: 3.445 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007657/0.4442, allocations: 487 kB / 438.4 MB, free: 3.168 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000343/0.4445, allocations: 283.4 kB / 438.7 MB, free: 3.008 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.042e-05/0.4446, allocations: 17.91 kB / 438.7 MB, free: 2.992 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005434/0.4451, allocations: 376 kB / 439 MB, free: 2.707 MB / 315.1 MB Notification: Performance of pre-optimization done (n=54): time 3.516e-06/0.4451, allocations: 3.984 kB / 439 MB, free: 2.703 MB / 315.1 MB Notification: Performance of matching and sorting (n=94): time 0.04341/0.4886, allocations: 10.35 MB / 449.4 MB, free: 9.656 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.4887, allocations: 137.3 kB / 449.5 MB, free: 9.492 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008418/0.4896, allocations: 416.4 kB / 449.9 MB, free: 9.168 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003826/0.49, allocations: 25.7 kB / 450 MB, free: 9.137 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003785/0.4904, allocations: 391.7 kB / 450.3 MB, free: 8.848 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004457/0.4908, allocations: 301.3 kB / 450.6 MB, free: 8.586 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.491, allocations: 0 / 450.6 MB, free: 8.586 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.4912, allocations: 382.8 kB / 451 MB, free: 8.234 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009472/0.4921, allocations: 0.5229 MB / 451.5 MB, free: 7.957 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009847/0.4931, allocations: 0.7335 MB / 452.3 MB, free: 7.422 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.4942, allocations: 0.5578 MB / 452.8 MB, free: 7.098 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.4943, allocations: 4 kB / 452.8 MB, free: 7.094 MB / 331.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02739/0.5217, allocations: 6.038 MB / 458.9 MB, free: 1.746 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.064e-05/0.5218, allocations: 67.88 kB / 458.9 MB, free: 1.672 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.5218, allocations: 4 kB / 458.9 MB, free: 1.668 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02813/0.55, allocations: 5.963 MB / 464.9 MB, free: 12.09 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000815/0.5508, allocations: 175.6 kB / 465.1 MB, free: 11.92 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005785/0.5566, allocations: 3.162 MB / 468.2 MB, free: 9.418 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002223/0.5589, allocations: 267.7 kB / 468.5 MB, free: 9.156 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002089/0.5591, allocations: 56.03 kB / 468.6 MB, free: 9.102 MB / 347.1 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.0004436/0.5596, allocations: 131 kB / 468.7 MB, free: 8.965 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002272/0.5598, allocations: 79.06 kB / 468.8 MB, free: 8.887 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0205/0.5803, allocations: 4.643 MB / 473.4 MB, free: 4.227 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-05/0.5804, allocations: 12 kB / 473.4 MB, free: 4.215 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.5804, allocations: 7.938 kB / 473.4 MB, free: 4.207 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.573e-05/0.5804, allocations: 3.984 kB / 473.4 MB, free: 4.203 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/0.5827, allocations: 1.165 MB / 474.6 MB, free: 2.996 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.5827, allocations: 0.9375 kB / 474.6 MB, free: 2.996 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000626/0.5833, allocations: 127.8 kB / 474.7 MB, free: 2.871 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0276/0.611, allocations: 5.952 MB / 480.7 MB, free: 12.91 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004024/0.6114, allocations: 15.97 kB / 480.7 MB, free: 12.89 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02415/0.6356, allocations: 8.635 MB / 489.3 MB, free: 4.102 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.6357, allocations: 0 / 489.3 MB, free: 4.102 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02155/0.6572, allocations: 5.374 MB / 494.7 MB, free: 14.7 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000681/0.658, allocations: 283.9 kB / 495 MB, free: 14.41 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002767/0.6583, allocations: 8 kB / 495 MB, free: 14.4 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001847/0.6601, allocations: 267.8 kB / 495.2 MB, free: 14.14 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005122/0.6606, allocations: 138 kB / 495.4 MB, free: 14 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.6608, allocations: 31.23 kB / 495.4 MB, free: 13.98 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0004444/0.6612, allocations: 314.9 kB / 495.7 MB, free: 13.67 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6612, allocations: 0 / 495.7 MB, free: 13.67 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001191/0.6624, allocations: 292 kB / 496 MB, free: 13.38 MB / 379.1 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.0002986/0.6628, allocations: 123.1 kB / 496.1 MB, free: 13.25 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.003596/0.6664, allocations: 1.619 MB / 497.7 MB, free: 11.61 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.6664, allocations: 0 / 497.7 MB, free: 11.61 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003854/0.6702, allocations: 1.242 MB / 499 MB, free: 10.36 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008322/0.6711, allocations: 86.33 kB / 499.1 MB, free: 10.28 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006044/0.6772, allocations: 1.849 MB / 0.4892 GB, free: 8.402 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006475/0.6779, allocations: 0.9626 MB / 0.4901 GB, free: 7.406 MB / 379.1 MB Notification: Performance of simCode: alias equations: time 0.0004531/0.6783, allocations: 59 kB / 0.4902 GB, free: 7.348 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.6785, allocations: 35.44 kB / 0.4902 GB, free: 7.312 MB / 379.1 MB Notification: Performance of SimCode: time 1.272e-06/0.6785, allocations: 0 / 0.4902 GB, free: 7.312 MB / 379.1 MB Notification: Performance of Templates: time 0.2027/0.8812, allocations: 27.33 MB / 0.5169 GB, free: 120.8 MB / 395.1 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)