Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006689/0.006689, allocations: 95.61 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 197.7 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.597/1.597, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00165/0.001651, allocations: 50.64 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1261, allocations: 46.62 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.007699/0.1339, allocations: 4.681 MB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004063/0.138, allocations: 1.28 MB / 379.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.1391, allocations: 11.94 kB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007491/0.1399, allocations: 110.8 kB / 379.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001485/0.1414, allocations: 257.7 kB / 379.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001423/0.1429, allocations: 291.5 kB / 379.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002275/0.1452, allocations: 1.06 MB / 380.9 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007302/0.1459, allocations: 262.4 kB / 381.1 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/0.1469, allocations: 410.5 kB / 381.5 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001093/0.1481, allocations: 454.1 kB / 382 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003692/0.1484, allocations: 84 kB / 382 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005195/0.149, allocations: 108 kB / 382.2 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003184/0.1493, allocations: 191.3 kB / 382.3 MB, free: 8.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009442/0.1503, allocations: 433.9 kB / 382.8 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00154/0.1518, allocations: 0.9765 MB / 383.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.1518, allocations: 0 / 383.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.739e-06/0.1519, allocations: 4 kB / 383.7 MB, free: 6.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.1519, allocations: 0 / 383.7 MB, free: 6.668 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.003322/0.1552, allocations: 1.234 MB / 385 MB, free: 5.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.002e-05/0.1553, allocations: 12.03 kB / 385 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002597/0.1556, allocations: 92.38 kB / 385.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009549/0.1565, allocations: 481.7 kB / 385.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/0.1566, allocations: 41.69 kB / 385.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.1568, allocations: 64.38 kB / 385.7 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.1587, allocations: 0.6392 MB / 386.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.709e-05/0.1587, allocations: 0 / 386.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.317e-05/0.1588, allocations: 24 kB / 386.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.076e-05/0.1588, allocations: 19.98 kB / 386.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002281/0.1611, allocations: 0.6765 MB / 387 MB, free: 3.285 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005146/0.1663, allocations: 2.321 MB / 389.3 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.1682, allocations: 0.5749 MB / 389.9 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.1692, allocations: 338 kB / 390.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.707e-05/0.1693, allocations: 8.344 kB / 390.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001309/0.1706, allocations: 433.4 kB / 390.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.475e-06/0.1707, allocations: 0 / 390.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06772/0.2384, allocations: 15.42 MB / 406.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.2386, allocations: 145.5 kB / 406.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007172/0.2393, allocations: 494.9 kB / 406.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002112/0.2395, allocations: 45.7 kB / 406.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.2398, allocations: 376.7 kB / 407.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002857/0.2401, allocations: 325.2 kB / 407.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003624/0.2404, allocations: 190.5 kB / 407.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.2406, allocations: 378.7 kB / 408 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001985/0.2426, allocations: 0.7202 MB / 408.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002146/0.2448, allocations: 0.9303 MB / 409.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004013/0.2488, allocations: 1.654 MB / 411.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.2488, allocations: 8 kB / 411.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.023/0.2718, allocations: 5.339 MB / 416.7 MB, free: 5.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.866e-05/0.272, allocations: 67.39 kB / 416.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.272, allocations: 7.938 kB / 416.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03356/0.3055, allocations: 6.829 MB / 423.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007975/0.3064, allocations: 143.7 kB / 423.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006348/0.3127, allocations: 3.012 MB / 426.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/0.3145, allocations: 179.8 kB / 426.9 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001883/0.3147, allocations: 47.97 kB / 426.9 MB, free: 10.73 MB / 366.1 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 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0004604/0.3151, allocations: 221.7 kB / 427.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.3153, allocations: 75.53 kB / 427.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02191/0.3372, allocations: 5.11 MB / 432.3 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/0.3373, allocations: 12 kB / 432.3 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.3373, allocations: 256 / 432.3 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.717e-05/0.3373, allocations: 3.984 kB / 432.3 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001912/0.3392, allocations: 1.1 MB / 433.4 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/0.3393, allocations: 3.938 kB / 433.5 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005821/0.3399, allocations: 95.88 kB / 433.5 MB, free: 4.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03322/0.3731, allocations: 6.782 MB / 440.3 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003092/0.3735, allocations: 27.97 kB / 440.4 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006207/0.3797, allocations: 3.032 MB / 443.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3797, allocations: 0 / 443.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02405/0.4038, allocations: 5.988 MB / 449.4 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003071/0.4042, allocations: 148.6 kB / 449.5 MB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003002/0.4045, allocations: 16 kB / 449.5 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/0.406, allocations: 175.8 kB / 449.7 MB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003231/0.4064, allocations: 92.88 kB / 449.8 MB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/0.4065, allocations: 35.97 kB / 449.8 MB, free: 3.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004364/0.4069, allocations: 334.9 kB / 450.2 MB, free: 3.305 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4069, allocations: 0 / 450.2 MB, free: 3.305 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001046/0.408, allocations: 252 kB / 450.4 MB, free: 3.059 MB / 382.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) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003279/0.4083, allocations: 135.2 kB / 450.5 MB, free: 2.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006145/0.4145, allocations: 2.043 MB / 452.6 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4145, allocations: 5.125 kB / 452.6 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2111/0.6256, allocations: 1.082 MB / 453.7 MB, free: 77.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008834/0.6265, allocations: 130.6 kB / 453.8 MB, free: 77.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/0.6308, allocations: 1.757 MB / 455.6 MB, free: 76.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004578/0.6313, allocations: 0.9379 MB / 456.5 MB, free: 75.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003012/0.6316, allocations: 56.88 kB / 456.5 MB, free: 75.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.6317, allocations: 34.67 kB / 456.6 MB, free: 75.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.6317, allocations: 1.156 kB / 456.6 MB, free: 75.84 MB / 382.1 MB Notification: Performance of Templates: time 0.03169/0.6634, allocations: 22.76 MB / 479.3 MB, free: 62.86 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)