Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.0008812/0.0008812, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.000999/0.0009994, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.4 MB / 222.1 MB, free: 5.629 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.0004699/0.00047, allocations: 8 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3071, allocations: 47.59 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004439/0.3116, allocations: 4.063 MB / 330.5 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.3143, allocations: 1.23 MB / 331.8 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003268/0.3146, allocations: 9.469 kB / 331.8 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002405/0.3149, allocations: 87.61 kB / 331.9 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004034/0.3153, allocations: 208.9 kB / 332.1 MB, free: 12.88 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005645/0.3158, allocations: 214.2 kB / 332.3 MB, free: 12.71 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.3169, allocations: 0.9475 MB / 333.2 MB, free: 12.12 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003766/0.3173, allocations: 191.8 kB / 333.4 MB, free: 12 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004917/0.3178, allocations: 350.8 kB / 333.8 MB, free: 11.81 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006011/0.3184, allocations: 399.6 kB / 334.1 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.3185, allocations: 44.72 kB / 334.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002586/0.3188, allocations: 72.34 kB / 334.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.319, allocations: 141.6 kB / 334.4 MB, free: 11.42 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002331/0.3192, allocations: 166.5 kB / 334.6 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007737/0.32, allocations: 0.716 MB / 335.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.32, allocations: 0 / 335.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.32, allocations: 0 / 335.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.3201, allocations: 4 kB / 335.3 MB, free: 10.64 MB / 270.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.002246/0.3223, allocations: 1.118 MB / 336.4 MB, free: 9.453 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3224, allocations: 8.031 kB / 336.4 MB, free: 9.445 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.3225, allocations: 86.97 kB / 336.5 MB, free: 9.359 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005591/0.3231, allocations: 444.5 kB / 336.9 MB, free: 8.887 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.3231, allocations: 53.27 kB / 337 MB, free: 8.836 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.3232, allocations: 63.91 kB / 337 MB, free: 8.773 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.3246, allocations: 0.6623 MB / 337.7 MB, free: 8.102 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3246, allocations: 0 / 337.7 MB, free: 8.102 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.338e-05/0.3246, allocations: 28 kB / 337.7 MB, free: 8.074 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.3247, allocations: 12 kB / 337.7 MB, free: 8.062 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.3262, allocations: 0.7312 MB / 338.5 MB, free: 7.332 MB / 270.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.003553/0.3298, allocations: 2.378 MB / 340.9 MB, free: 4.797 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.3312, allocations: 0.6374 MB / 341.5 MB, free: 4.152 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007116/0.3319, allocations: 354 kB / 341.8 MB, free: 3.805 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.598e-05/0.332, allocations: 16.42 kB / 341.9 MB, free: 3.789 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009749/0.333, allocations: 449.4 kB / 342.3 MB, free: 3.324 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 3.086e-06/0.333, allocations: 0 / 342.3 MB, free: 3.324 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06369/0.3967, allocations: 16.73 MB / 359 MB, free: 2.492 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.441e-05/0.3968, allocations: 145.5 kB / 359.2 MB, free: 2.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007059/0.3975, allocations: 490.8 kB / 359.6 MB, free: 1.836 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002706/0.3978, allocations: 45.7 kB / 359.7 MB, free: 1.785 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000339/0.3982, allocations: 367.9 kB / 360 MB, free: 1.418 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003849/0.3986, allocations: 311.5 kB / 360.4 MB, free: 1.109 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.521e-05/0.3987, allocations: 20 kB / 360.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3988, allocations: 382.8 kB / 360.7 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001999/0.4008, allocations: 0.7905 MB / 361.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/0.403, allocations: 1.005 MB / 362.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002031/0.405, allocations: 0.8769 MB / 363.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.405, allocations: 4 kB / 363.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02148/0.4265, allocations: 5.62 MB / 369 MB, free: 8.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.309e-05/0.4267, allocations: 67.39 kB / 369.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.543e-05/0.4267, allocations: 4 kB / 369.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03199/0.4587, allocations: 7.317 MB / 376.4 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007578/0.4595, allocations: 171.7 kB / 376.6 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007216/0.4667, allocations: 3.208 MB / 379.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001902/0.4687, allocations: 215.8 kB / 380 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002175/0.469, allocations: 43.98 kB / 380.1 MB, free: 13.19 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 ($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 () * 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 (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.000592/0.4696, allocations: 229.6 kB / 380.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.4698, allocations: 79.06 kB / 380.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02159/0.4914, allocations: 5.454 MB / 385.8 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.344e-05/0.4915, allocations: 12.03 kB / 385.8 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-05/0.4915, allocations: 4.203 kB / 385.8 MB, free: 7.379 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.428e-05/0.4915, allocations: 3.984 kB / 385.8 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002066/0.4936, allocations: 1.098 MB / 386.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/0.4936, allocations: 0 / 386.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005487/0.4942, allocations: 135.8 kB / 387.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03234/0.5266, allocations: 7.277 MB / 394.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002549/0.5269, allocations: 31.97 kB / 394.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005779/0.5327, allocations: 3.094 MB / 397.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.5327, allocations: 0 / 397.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02415/0.5568, allocations: 6.409 MB / 403.9 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002969/0.5572, allocations: 144.2 kB / 404 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002912/0.5575, allocations: 20 kB / 404 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.5589, allocations: 215.8 kB / 404.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/0.5592, allocations: 100.8 kB / 404.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.5593, allocations: 31.97 kB / 404.4 MB, free: 4.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004311/0.5598, allocations: 334.9 kB / 404.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5598, allocations: 0 / 404.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009109/0.5607, allocations: 252 kB / 404.9 MB, free: 4.09 MB / 334.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 (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.0002874/0.561, allocations: 135.2 kB / 405.1 MB, free: 3.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006645/0.5676, allocations: 2.313 MB / 407.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.5677, allocations: 3.938 kB / 407.4 MB, free: 1.609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003374/0.5711, allocations: 1.156 MB / 408.6 MB, free: 468 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000951/0.572, allocations: 130.2 kB / 408.7 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004397/0.5764, allocations: 2.058 MB / 410.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.577, allocations: 0.9466 MB / 411.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003393/0.5773, allocations: 58.06 kB / 411.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.5774, allocations: 27.44 kB / 411.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5774, allocations: 0 / 411.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Templates: time 0.0366/0.6141, allocations: 19.72 MB / 431.5 MB, free: 9.43 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)