Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001216/0.001217, allocations: 89.61 kB / 16.65 MB, free: 6.59 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.001311/0.001311, allocations: 182.5 kB / 17.56 MB, free: 6.203 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.626/1.626, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.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.000714/0.0007139, allocations: 12 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1167, allocations: 47.59 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005597/0.1224, allocations: 4.298 MB / 332.6 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003083/0.1255, allocations: 1.265 MB / 333.9 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005951/0.1261, allocations: 12 kB / 333.9 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000382/0.1266, allocations: 83.3 kB / 334 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009262/0.1275, allocations: 214.2 kB / 334.2 MB, free: 13.86 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.1285, allocations: 251.7 kB / 334.4 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001485/0.13, allocations: 1.001 MB / 335.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004987/0.1305, allocations: 207.3 kB / 335.6 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007713/0.1313, allocations: 358.5 kB / 336 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005805/0.1319, allocations: 406.1 kB / 336.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.132, allocations: 44 kB / 336.4 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.1323, allocations: 67.98 kB / 336.5 MB, free: 11.53 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001546/0.1324, allocations: 135.4 kB / 336.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004414/0.1329, allocations: 411.6 kB / 337 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009831/0.1339, allocations: 0.9108 MB / 337.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1339, allocations: 4 kB / 337.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1339, allocations: 0 / 337.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.1339, allocations: 0 / 337.9 MB, free: 10.07 MB / 286.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.002683/0.1366, allocations: 1.118 MB / 339.1 MB, free: 8.883 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.1367, allocations: 11.97 kB / 339.1 MB, free: 8.871 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.1369, allocations: 84 kB / 339.2 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006467/0.1375, allocations: 465.4 kB / 339.6 MB, free: 8.293 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.1376, allocations: 45.69 kB / 339.6 MB, free: 8.25 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.1377, allocations: 64.36 kB / 339.7 MB, free: 8.188 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.139, allocations: 0.6666 MB / 340.4 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.1391, allocations: 7.891 kB / 340.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.327e-05/0.1391, allocations: 28 kB / 340.4 MB, free: 7.477 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.1392, allocations: 15.94 kB / 340.4 MB, free: 7.461 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.1408, allocations: 0.7351 MB / 341.2 MB, free: 6.727 MB / 286.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.003867/0.1447, allocations: 2.363 MB / 343.5 MB, free: 4.211 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.1462, allocations: 0.649 MB / 344.2 MB, free: 3.551 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007546/0.1469, allocations: 358 kB / 344.5 MB, free: 3.199 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.938e-05/0.147, allocations: 12.42 kB / 344.5 MB, free: 3.188 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00101/0.148, allocations: 461.4 kB / 345 MB, free: 2.711 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.926e-06/0.148, allocations: 0 / 345 MB, free: 2.711 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06858/0.2166, allocations: 16.74 MB / 361.7 MB, free: 1.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.2168, allocations: 141.5 kB / 361.9 MB, free: 1.703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00066/0.2174, allocations: 0.491 MB / 362.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001831/0.2176, allocations: 45.7 kB / 362.4 MB, free: 1.156 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002543/0.2179, allocations: 367.8 kB / 362.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.2182, allocations: 315.4 kB / 363.1 MB, free: 488 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.2183, allocations: 81.67 kB / 363.1 MB, free: 400 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.2185, allocations: 382.8 kB / 363.5 MB, free: 8 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/0.2205, allocations: 0.7944 MB / 364.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002101/0.2226, allocations: 1.005 MB / 365.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004001/0.2266, allocations: 1.814 MB / 367.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.2267, allocations: 0 / 367.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02323/0.2499, allocations: 5.722 MB / 372.9 MB, free: 6.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.629e-05/0.25, allocations: 67.39 kB / 372.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.25, allocations: 8 kB / 372.9 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2057/0.4557, allocations: 7.312 MB / 380.2 MB, free: 51.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000851/0.4566, allocations: 172.4 kB / 380.4 MB, free: 51.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007133/0.4638, allocations: 3.211 MB / 383.6 MB, free: 50.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/0.4656, allocations: 219.4 kB / 383.8 MB, free: 50.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/0.4657, allocations: 44.88 kB / 383.9 MB, free: 50.87 MB / 318.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.0004337/0.4662, allocations: 225.8 kB / 384.1 MB, free: 50.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.4663, allocations: 74.97 kB / 384.2 MB, free: 50.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02386/0.4902, allocations: 5.472 MB / 389.6 MB, free: 50.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.302e-05/0.4903, allocations: 11.78 kB / 389.7 MB, free: 50.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.4903, allocations: 3.875 kB / 389.7 MB, free: 50.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.016e-05/0.4903, allocations: 7.594 kB / 389.7 MB, free: 50.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001304/0.4916, allocations: 1.085 MB / 390.8 MB, free: 49.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.4916, allocations: 0 / 390.8 MB, free: 49.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005423/0.4922, allocations: 120.8 kB / 390.9 MB, free: 49.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03294/0.5251, allocations: 7.297 MB / 398.2 MB, free: 47.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000216/0.5254, allocations: 27.97 kB / 398.2 MB, free: 47.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004947/0.5303, allocations: 3.09 MB / 401.3 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5304, allocations: 0 / 401.3 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02307/0.5534, allocations: 6.427 MB / 407.7 MB, free: 37.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.5537, allocations: 144.2 kB / 407.9 MB, free: 37.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.5538, allocations: 20 kB / 407.9 MB, free: 37.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.5552, allocations: 211.8 kB / 408.1 MB, free: 37.45 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002297/0.5554, allocations: 96.86 kB / 408.2 MB, free: 37.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.702e-05/0.5555, allocations: 27.98 kB / 408.2 MB, free: 37.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003261/0.5558, allocations: 338.9 kB / 408.5 MB, free: 37 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5558, allocations: 0 / 408.5 MB, free: 37 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006894/0.5565, allocations: 259.9 kB / 408.8 MB, free: 36.74 MB / 318.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.0002285/0.5568, allocations: 130.1 kB / 408.9 MB, free: 36.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006176/0.5629, allocations: 2.327 MB / 411.2 MB, free: 34.26 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.563, allocations: 0 / 411.2 MB, free: 34.26 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003109/0.5661, allocations: 1.159 MB / 412.4 MB, free: 33.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006781/0.5668, allocations: 125.1 kB / 412.5 MB, free: 32.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002924/0.5697, allocations: 2.145 MB / 414.7 MB, free: 30.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.57, allocations: 0.9386 MB / 415.6 MB, free: 29.87 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002392/0.5702, allocations: 58.06 kB / 415.7 MB, free: 29.81 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.5703, allocations: 35.38 kB / 415.7 MB, free: 29.77 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5703, allocations: 0 / 415.7 MB, free: 29.77 MB / 318.1 MB Notification: Performance of Templates: time 0.02303/0.5934, allocations: 20.36 MB / 436.1 MB, free: 9.41 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)