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.001761/0.00176, allocations: 112.1 kB / 17.07 MB, free: 5.973 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.001408/0.001408, allocations: 194.8 kB / 18 MB, free: 5.059 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.762/1.762, allocations: 205.1 MB / 223.9 MB, free: 12.2 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.001324/0.001324, allocations: 47.92 kB / 327.9 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1171, allocations: 46.61 MB / 374.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.2352/0.3524, allocations: 4.687 MB / 379.2 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003024/0.3555, allocations: 1.276 MB / 380.5 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004527/0.356, allocations: 11.97 kB / 380.5 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003171/0.3564, allocations: 110 kB / 380.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005396/0.3569, allocations: 255.8 kB / 380.8 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00087/0.3578, allocations: 305.2 kB / 381.1 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001192/0.359, allocations: 1.055 MB / 382.2 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000424/0.3594, allocations: 259.3 kB / 382.4 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006545/0.3601, allocations: 411.7 kB / 382.8 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005772/0.3607, allocations: 455.8 kB / 383.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001454/0.3609, allocations: 85.09 kB / 383.4 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002579/0.3611, allocations: 108.7 kB / 383.5 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.3613, allocations: 193 kB / 383.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004182/0.3617, allocations: 429.4 kB / 384.1 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.3629, allocations: 0.9737 MB / 385.1 MB, free: 8.133 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3629, allocations: 3.938 kB / 385.1 MB, free: 8.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3629, allocations: 1.188 kB / 385.1 MB, free: 8.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.447e-05/0.3629, allocations: 0 / 385.1 MB, free: 8.129 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.002367/0.3653, allocations: 1.215 MB / 386.3 MB, free: 7.305 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3654, allocations: 8.469 kB / 386.3 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.3655, allocations: 88.28 kB / 386.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006643/0.3662, allocations: 470 kB / 386.8 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.808e-05/0.3663, allocations: 51.19 kB / 386.9 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.3664, allocations: 62.84 kB / 386.9 MB, free: 6.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.3678, allocations: 0.6379 MB / 387.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.3679, allocations: 2.625 kB / 387.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.264e-05/0.368, allocations: 26.47 kB / 387.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.368, allocations: 14.03 kB / 387.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.3697, allocations: 0.6764 MB / 388.3 MB, free: 6.391 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.003714/0.3734, allocations: 2.308 MB / 390.6 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.3748, allocations: 0.5912 MB / 391.2 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007325/0.3755, allocations: 331.4 kB / 391.5 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.294e-05/0.3756, allocations: 9.156 kB / 391.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009835/0.3766, allocations: 434.2 kB / 391.9 MB, free: 4.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.054e-06/0.3766, allocations: 1.406 kB / 391.9 MB, free: 4.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.06651/0.4431, allocations: 15.4 MB / 407.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.4433, allocations: 145.5 kB / 407.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007507/0.4441, allocations: 498.8 kB / 408 MB, free: 12.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002596/0.4443, allocations: 45.7 kB / 408 MB, free: 12.94 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/0.4446, allocations: 367.1 kB / 408.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003051/0.4449, allocations: 310.2 kB / 408.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004057/0.4453, allocations: 178.5 kB / 408.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.4455, allocations: 382.8 kB / 409.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001941/0.4475, allocations: 0.7241 MB / 410 MB, free: 10.99 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002002/0.4495, allocations: 0.9231 MB / 410.9 MB, free: 9.984 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003678/0.4532, allocations: 1.662 MB / 412.5 MB, free: 8.238 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.4532, allocations: 0 / 412.5 MB, free: 8.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02166/0.4749, allocations: 5.347 MB / 417.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.165e-05/0.475, allocations: 59.41 kB / 417.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.475, allocations: 8.812 kB / 418 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0326/0.5076, allocations: 6.827 MB / 424.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007473/0.5084, allocations: 147.7 kB / 424.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006433/0.5149, allocations: 3.008 MB / 427.9 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.5167, allocations: 175.9 kB / 428.1 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001803/0.5169, allocations: 53.91 kB / 428.2 MB, free: 8.527 MB / 350.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.0005596/0.5175, allocations: 225.6 kB / 428.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002289/0.5177, allocations: 83 kB / 428.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02176/0.5395, allocations: 5.092 MB / 433.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.421e-05/0.5396, allocations: 8.562 kB / 433.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.5396, allocations: 0 / 433.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.371e-05/0.5397, allocations: 3.984 kB / 433.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002747/0.5425, allocations: 1.105 MB / 434.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.807e-05/0.5425, allocations: 10.25 kB / 434.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005703/0.5431, allocations: 83.89 kB / 434.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03302/0.5761, allocations: 6.789 MB / 441.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003451/0.5765, allocations: 23.97 kB / 441.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006119/0.5827, allocations: 3.028 MB / 444.6 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.5827, allocations: 3.984 kB / 444.6 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02409/0.6068, allocations: 5.984 MB / 450.6 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003866/0.6072, allocations: 144.2 kB / 450.7 MB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004237/0.6077, allocations: 16 kB / 450.7 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001599/0.6093, allocations: 171.8 kB / 450.9 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000368/0.6097, allocations: 100.9 kB / 451 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001479/0.6099, allocations: 27.97 kB / 451 MB, free: 1.484 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004598/0.6103, allocations: 342.9 kB / 451.4 MB, free: 1.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6103, allocations: 0 / 451.4 MB, free: 1.152 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001008/0.6113, allocations: 252 kB / 451.6 MB, free: 0.9062 MB / 366.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.0003312/0.6117, allocations: 133.2 kB / 451.8 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006118/0.6178, allocations: 2.05 MB / 453.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.6179, allocations: 0 / 453.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003479/0.6214, allocations: 1.089 MB / 454.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.6225, allocations: 128.8 kB / 455 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00427/0.6268, allocations: 1.742 MB / 456.8 MB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.6273, allocations: 0.9389 MB / 457.7 MB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002897/0.6276, allocations: 54.08 kB / 457.7 MB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.6278, allocations: 35.42 kB / 457.8 MB, free: 10.67 MB / 382.1 MB Notification: Performance of SimCode: time 1.393e-06/0.6278, allocations: 0 / 457.8 MB, free: 10.67 MB / 382.1 MB Notification: Performance of Templates: time 0.03786/0.6656, allocations: 22.75 MB / 480.5 MB, free: 3.898 MB / 398.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)