Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 198.1 kB / 16.53 MB, free: 6.391 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.411/1.411, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001161/0.001161, allocations: 51.94 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2232, allocations: 46.63 MB / 325.3 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005202/0.2284, allocations: 4.706 MB / 330 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003145/0.2316, allocations: 1.275 MB / 331.3 MB, free: 13.01 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004061/0.232, allocations: 8.781 kB / 331.3 MB, free: 13.01 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002968/0.2324, allocations: 111.6 kB / 331.4 MB, free: 12.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004992/0.2329, allocations: 253.3 kB / 331.7 MB, free: 12.69 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006815/0.2336, allocations: 295 kB / 331.9 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001328/0.2349, allocations: 1.05 MB / 333 MB, free: 11.81 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005711/0.2355, allocations: 259.4 kB / 333.2 MB, free: 11.66 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009178/0.2364, allocations: 404.4 kB / 333.6 MB, free: 11.42 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007936/0.2372, allocations: 457.3 kB / 334.1 MB, free: 11.1 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.2374, allocations: 84 kB / 334.2 MB, free: 11.02 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003211/0.2377, allocations: 112 kB / 334.3 MB, free: 10.91 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002122/0.238, allocations: 183.3 kB / 334.5 MB, free: 10.73 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005072/0.2385, allocations: 437.9 kB / 334.9 MB, free: 10.3 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.2397, allocations: 0.959 MB / 335.8 MB, free: 9.336 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.2397, allocations: 4 kB / 335.9 MB, free: 9.332 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.2397, allocations: 0 / 335.9 MB, free: 9.332 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.2397, allocations: 0 / 335.9 MB, free: 9.332 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.002489/0.2422, allocations: 1.204 MB / 337.1 MB, free: 8.059 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.2423, allocations: 16.03 kB / 337.1 MB, free: 8.043 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.2425, allocations: 87.91 kB / 337.2 MB, free: 7.957 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006949/0.2432, allocations: 469.3 kB / 337.6 MB, free: 7.457 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.622e-05/0.2433, allocations: 41.69 kB / 337.7 MB, free: 7.418 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.2434, allocations: 64.36 kB / 337.7 MB, free: 7.355 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.2447, allocations: 0.6353 MB / 338.4 MB, free: 6.715 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.2448, allocations: 4 kB / 338.4 MB, free: 6.711 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.573e-05/0.2449, allocations: 24 kB / 338.4 MB, free: 6.688 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.2449, allocations: 16 kB / 338.4 MB, free: 6.672 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.2465, allocations: 0.6726 MB / 339.1 MB, free: 5.996 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.003693/0.2502, allocations: 2.331 MB / 341.4 MB, free: 3.512 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.2516, allocations: 0.5905 MB / 342 MB, free: 2.914 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007221/0.2524, allocations: 330 kB / 342.3 MB, free: 2.59 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.934e-05/0.2524, allocations: 16.42 kB / 342.3 MB, free: 2.574 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000984/0.2534, allocations: 425.4 kB / 342.7 MB, free: 2.133 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.324e-06/0.2534, allocations: 0 / 342.7 MB, free: 2.133 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06804/0.3215, allocations: 15.4 MB / 358.1 MB, free: 2.637 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.765e-05/0.3216, allocations: 149.5 kB / 358.3 MB, free: 2.457 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000616/0.3223, allocations: 498.8 kB / 358.8 MB, free: 1.961 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001775/0.3224, allocations: 45.7 kB / 358.8 MB, free: 1.91 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/0.3227, allocations: 364 kB / 359.2 MB, free: 1.547 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003204/0.3231, allocations: 319.3 kB / 359.5 MB, free: 1.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003842/0.3234, allocations: 178.5 kB / 359.7 MB, free: 1.051 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3236, allocations: 382.8 kB / 360 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/0.3257, allocations: 0.7163 MB / 360.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002097/0.3278, allocations: 0.9264 MB / 361.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004095/0.3319, allocations: 1.662 MB / 363.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.3319, allocations: 4 kB / 363.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02286/0.3548, allocations: 5.339 MB / 368.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.107e-05/0.3549, allocations: 71.39 kB / 368.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.3549, allocations: 7.984 kB / 368.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03287/0.3878, allocations: 6.848 MB / 375.6 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000687/0.3885, allocations: 139.7 kB / 375.7 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006729/0.3953, allocations: 3.157 MB / 378.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/0.3971, allocations: 179.8 kB / 379.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.3973, allocations: 43.97 kB / 379.1 MB, free: 13.3 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.00055/0.3979, allocations: 221.7 kB / 379.3 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.3981, allocations: 71.16 kB / 379.4 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0217/0.4198, allocations: 5.118 MB / 384.5 MB, free: 7.867 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.002e-05/0.4199, allocations: 12 kB / 384.5 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.4199, allocations: 0 / 384.5 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.653e-05/0.4199, allocations: 3.984 kB / 384.5 MB, free: 7.852 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.4215, allocations: 1.082 MB / 385.6 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.4216, allocations: 3.938 kB / 385.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005451/0.4221, allocations: 95.88 kB / 385.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03274/0.4549, allocations: 6.801 MB / 392.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002151/0.4551, allocations: 27.97 kB / 392.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005833/0.461, allocations: 3.051 MB / 395.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.461, allocations: 0 / 395.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02439/0.4854, allocations: 5.987 MB / 401.6 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002163/0.4856, allocations: 140.2 kB / 401.7 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002475/0.4859, allocations: 20 kB / 401.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/0.4874, allocations: 167.8 kB / 401.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002696/0.4877, allocations: 100.9 kB / 402 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.162e-05/0.4878, allocations: 27.98 kB / 402 MB, free: 6.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003991/0.4882, allocations: 334.9 kB / 402.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4882, allocations: 0 / 402.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007445/0.4889, allocations: 256 kB / 402.6 MB, free: 5.609 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.0002697/0.4892, allocations: 143.4 kB / 402.8 MB, free: 5.457 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00702/0.4962, allocations: 2.185 MB / 404.9 MB, free: 3.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.4963, allocations: 0 / 404.9 MB, free: 3.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003466/0.4997, allocations: 1.101 MB / 406 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008996/0.5006, allocations: 122.2 kB / 406.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004027/0.5047, allocations: 1.736 MB / 407.9 MB, free: 268 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.5053, allocations: 0.9389 MB / 408.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002843/0.5056, allocations: 58.06 kB / 408.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.5057, allocations: 31.44 kB / 408.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of SimCode: time 1.312e-06/0.5057, allocations: 0 / 408.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of Templates: time 0.03414/0.5399, allocations: 22.28 MB / 431.2 MB, free: 8.891 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)