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.001049/0.001049, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.01073/0.01073, allocations: 172.1 kB / 16.26 MB, free: 6.613 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.586/1.586, allocations: 205.4 MB / 222.5 MB, free: 5.562 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.0004795/0.0004797, allocations: 12.47 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2959, allocations: 47.6 MB / 327 MB, free: 1.625 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006219/0.3022, allocations: 4.294 MB / 331.3 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003458/0.3057, allocations: 1.273 MB / 332.6 MB, free: 13.13 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.3067, allocations: 17.97 kB / 332.6 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005289/0.3073, allocations: 80.44 kB / 332.7 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001266/0.3086, allocations: 208.4 kB / 332.9 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.3096, allocations: 257.2 kB / 333.1 MB, free: 12.65 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001605/0.3112, allocations: 0.9912 MB / 334.1 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005396/0.3118, allocations: 213.1 kB / 334.3 MB, free: 11.94 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009387/0.3127, allocations: 351.2 kB / 334.7 MB, free: 11.75 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009326/0.3137, allocations: 410.7 kB / 335.1 MB, free: 11.43 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002359/0.3139, allocations: 44 kB / 335.1 MB, free: 11.38 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004491/0.3144, allocations: 67.98 kB / 335.2 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002073/0.3146, allocations: 143.3 kB / 335.3 MB, free: 11.18 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006836/0.3153, allocations: 411.6 kB / 335.7 MB, free: 10.77 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001082/0.3164, allocations: 0.912 MB / 336.7 MB, free: 9.852 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3164, allocations: 7.938 kB / 336.7 MB, free: 9.844 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3164, allocations: 0 / 336.7 MB, free: 9.844 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.437e-05/0.3165, allocations: 0 / 336.7 MB, free: 9.844 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.002738/0.3192, allocations: 1.11 MB / 337.8 MB, free: 8.668 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.3193, allocations: 8.031 kB / 337.8 MB, free: 8.66 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.3195, allocations: 87.91 kB / 337.9 MB, free: 8.574 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007668/0.3203, allocations: 465.3 kB / 338.3 MB, free: 8.078 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.812e-05/0.3204, allocations: 45.69 kB / 338.4 MB, free: 8.035 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.3205, allocations: 68.36 kB / 338.4 MB, free: 7.969 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.322, allocations: 0.6665 MB / 339.1 MB, free: 7.293 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.322, allocations: 0 / 339.1 MB, free: 7.293 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.437e-05/0.3221, allocations: 24 kB / 339.1 MB, free: 7.27 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.3221, allocations: 16 kB / 339.1 MB, free: 7.254 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001756/0.3239, allocations: 0.7351 MB / 339.9 MB, free: 6.52 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.00423/0.3281, allocations: 2.382 MB / 342.3 MB, free: 3.98 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.3297, allocations: 0.6413 MB / 342.9 MB, free: 3.332 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007707/0.3305, allocations: 358 kB / 343.2 MB, free: 2.98 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.174e-05/0.3305, allocations: 8.438 kB / 343.3 MB, free: 2.973 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001029/0.3316, allocations: 461.4 kB / 343.7 MB, free: 2.496 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.184e-06/0.3316, allocations: 0 / 343.7 MB, free: 2.496 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.07266/0.4042, allocations: 16.73 MB / 360.4 MB, free: 1.672 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.4044, allocations: 149.5 kB / 360.6 MB, free: 1.492 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00063/0.405, allocations: 498.8 kB / 361.1 MB, free: 1 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000213/0.4053, allocations: 45.7 kB / 361.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002733/0.4055, allocations: 364 kB / 361.5 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000282/0.4058, allocations: 311.5 kB / 361.8 MB, free: 284 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.406, allocations: 81.67 kB / 361.8 MB, free: 196 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.4061, allocations: 378.8 kB / 362.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002119/0.4083, allocations: 0.7982 MB / 363 MB, free: 15.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00226/0.4106, allocations: 1.012 MB / 364 MB, free: 13.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004405/0.415, allocations: 1.814 MB / 365.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.415, allocations: 4 kB / 365.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02482/0.4399, allocations: 5.718 MB / 371.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.053e-05/0.44, allocations: 59.41 kB / 371.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.887e-05/0.44, allocations: 8 kB / 371.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03637/0.4764, allocations: 7.324 MB / 379 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007446/0.4772, allocations: 171.7 kB / 379.1 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006995/0.4842, allocations: 3.219 MB / 382.3 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001756/0.486, allocations: 215.8 kB / 382.6 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001977/0.4862, allocations: 47.97 kB / 382.6 MB, free: 11.16 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.0004639/0.4867, allocations: 221.7 kB / 382.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.4868, allocations: 79.06 kB / 382.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0239/0.5108, allocations: 5.477 MB / 388.4 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-05/0.5108, allocations: 8 kB / 388.4 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.5108, allocations: 0 / 388.4 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.809e-05/0.5109, allocations: 7.969 kB / 388.4 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00161/0.5125, allocations: 1.09 MB / 389.5 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.5125, allocations: 3.938 kB / 389.5 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005662/0.5131, allocations: 127.9 kB / 389.6 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03531/0.5484, allocations: 7.281 MB / 396.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002826/0.5488, allocations: 31.97 kB / 396.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005898/0.5547, allocations: 3.099 MB / 400 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.5547, allocations: 0.5 kB / 400 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02583/0.5805, allocations: 6.428 MB / 406.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003993/0.581, allocations: 144.2 kB / 406.6 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000193/0.5812, allocations: 16 kB / 406.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/0.5827, allocations: 219.8 kB / 406.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002731/0.583, allocations: 96.86 kB / 406.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.44e-05/0.5831, allocations: 27.98 kB / 406.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004099/0.5835, allocations: 338.9 kB / 407.3 MB, free: 2.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5835, allocations: 4 kB / 407.3 MB, free: 2.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007811/0.5843, allocations: 252 kB / 407.5 MB, free: 2.027 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 (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.0003034/0.5846, allocations: 135.2 kB / 407.7 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007392/0.592, allocations: 2.324 MB / 410 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.592, allocations: 0 / 410 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003561/0.5956, allocations: 1.153 MB / 411.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009351/0.5966, allocations: 122.2 kB / 411.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003876/0.6005, allocations: 2.148 MB / 413.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.601, allocations: 0.9427 MB / 414.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002887/0.6013, allocations: 58.06 kB / 414.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.6014, allocations: 31.44 kB / 414.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of SimCode: time 1.132e-06/0.6014, allocations: 0 / 414.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of Templates: time 0.03127/0.6327, allocations: 20.34 MB / 434.8 MB, free: 6.664 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)