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.0009426/0.0009429, allocations: 90.52 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.004973/0.004973, allocations: 170.2 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.509/1.509, allocations: 205.4 MB / 222.4 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.000448/0.0004479, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2613, allocations: 47.58 MB / 327 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005813/0.2672, allocations: 4.316 MB / 331.3 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003001/0.2703, allocations: 1.269 MB / 332.6 MB, free: 12.92 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002679/0.2705, allocations: 10.25 kB / 332.6 MB, free: 12.92 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002363/0.2708, allocations: 79.88 kB / 332.7 MB, free: 12.85 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004389/0.2712, allocations: 221 kB / 332.9 MB, free: 12.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006399/0.2719, allocations: 257.3 kB / 333.2 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001373/0.2733, allocations: 0.9884 MB / 334.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004675/0.2737, allocations: 220.8 kB / 334.4 MB, free: 11.72 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000535/0.2743, allocations: 351 kB / 334.7 MB, free: 11.54 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005038/0.2748, allocations: 413.7 kB / 335.1 MB, free: 11.24 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.508e-05/0.2749, allocations: 40 kB / 335.2 MB, free: 11.2 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001793/0.2751, allocations: 63.98 kB / 335.2 MB, free: 11.14 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.2752, allocations: 147.3 kB / 335.4 MB, free: 11 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000352/0.2756, allocations: 407.6 kB / 335.8 MB, free: 10.59 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007625/0.2764, allocations: 0.908 MB / 336.7 MB, free: 9.68 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2764, allocations: 0 / 336.7 MB, free: 9.68 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2764, allocations: 0 / 336.7 MB, free: 9.68 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.2764, allocations: 4 kB / 336.7 MB, free: 9.676 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.002323/0.2787, allocations: 1.114 MB / 337.8 MB, free: 8.496 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.2788, allocations: 12.03 kB / 337.8 MB, free: 8.484 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.279, allocations: 87.91 kB / 337.9 MB, free: 8.398 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006085/0.2796, allocations: 461.4 kB / 338.3 MB, free: 7.906 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.851e-05/0.2796, allocations: 49.62 kB / 338.4 MB, free: 7.859 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.2798, allocations: 60.38 kB / 338.4 MB, free: 7.801 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.2812, allocations: 0.6666 MB / 339.1 MB, free: 7.125 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.2812, allocations: 0 / 339.1 MB, free: 7.125 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-05/0.2813, allocations: 31.98 kB / 339.1 MB, free: 7.094 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.2813, allocations: 15.98 kB / 339.2 MB, free: 7.078 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.2832, allocations: 0.7312 MB / 339.9 MB, free: 6.348 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.003798/0.287, allocations: 2.374 MB / 342.3 MB, free: 3.816 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.2885, allocations: 0.6452 MB / 342.9 MB, free: 3.164 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007497/0.2892, allocations: 358 kB / 343.3 MB, free: 2.812 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.758e-05/0.2893, allocations: 12.44 kB / 343.3 MB, free: 2.801 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009639/0.2903, allocations: 457.3 kB / 343.7 MB, free: 2.328 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 1.883e-06/0.2903, allocations: 4 kB / 343.7 MB, free: 2.324 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.07128/0.3616, allocations: 16.72 MB / 360.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.3617, allocations: 149.5 kB / 360.6 MB, free: 1.324 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007258/0.3625, allocations: 498.8 kB / 361.1 MB, free: 0.832 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002185/0.3627, allocations: 45.7 kB / 361.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002866/0.363, allocations: 364 kB / 361.5 MB, free: 428 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002985/0.3633, allocations: 315.4 kB / 361.8 MB, free: 108 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.3635, allocations: 81.67 kB / 361.9 MB, free: 20 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3636, allocations: 386.7 kB / 362.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002089/0.3657, allocations: 0.7944 MB / 363 MB, free: 14.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002201/0.3679, allocations: 1.008 MB / 364 MB, free: 13.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004144/0.3721, allocations: 1.818 MB / 365.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.3721, allocations: 0 / 365.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02363/0.3958, allocations: 5.714 MB / 371.6 MB, free: 6.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.866e-05/0.3959, allocations: 63.41 kB / 371.6 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.3959, allocations: 4 kB / 371.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03507/0.431, allocations: 7.332 MB / 379 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007817/0.4318, allocations: 167.8 kB / 379.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007035/0.4389, allocations: 3.231 MB / 382.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001833/0.4407, allocations: 211.9 kB / 382.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.4408, allocations: 47.97 kB / 382.6 MB, free: 10.98 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.0004914/0.4413, allocations: 221.6 kB / 382.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.4415, allocations: 87.05 kB / 382.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02301/0.4645, allocations: 5.466 MB / 388.4 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.235e-05/0.4646, allocations: 12 kB / 388.4 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/0.4646, allocations: 0 / 388.4 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.77e-05/0.4647, allocations: 3.984 kB / 388.4 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/0.4664, allocations: 1.09 MB / 389.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.4664, allocations: 3.938 kB / 389.5 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005599/0.467, allocations: 115.9 kB / 389.6 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03494/0.5019, allocations: 7.289 MB / 396.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002618/0.5022, allocations: 27.97 kB / 396.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005848/0.5081, allocations: 3.11 MB / 400 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.5081, allocations: 4 kB / 400 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02522/0.5333, allocations: 6.421 MB / 406.5 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003248/0.5337, allocations: 144.2 kB / 406.6 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.5339, allocations: 20.06 kB / 406.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/0.5353, allocations: 211.7 kB / 406.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000269/0.5356, allocations: 96.86 kB / 406.9 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.192e-05/0.5357, allocations: 31.97 kB / 407 MB, free: 2.426 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004236/0.5361, allocations: 338.9 kB / 407.3 MB, free: 2.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5361, allocations: 0 / 407.3 MB, free: 2.098 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007567/0.5369, allocations: 256 kB / 407.5 MB, free: 1.848 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.0002747/0.5371, allocations: 127.5 kB / 407.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007112/0.5443, allocations: 2.336 MB / 410 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.83e-06/0.5443, allocations: 3.938 kB / 410 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003687/0.548, allocations: 1.168 MB / 411.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008451/0.5488, allocations: 118.2 kB / 411.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004226/0.5531, allocations: 2.14 MB / 413.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005023/0.5536, allocations: 0.9388 MB / 414.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002839/0.5539, allocations: 54.08 kB / 414.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.554, allocations: 35.44 kB / 414.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of SimCode: time 1.502e-06/0.554, allocations: 0 / 414.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of Templates: time 0.03364/0.5877, allocations: 20.4 MB / 434.9 MB, free: 6.418 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)