Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001231/0.001231, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001329/0.001329, allocations: 200 kB / 18.01 MB, free: 5.055 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.57/1.57, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001451/0.001451, allocations: 55.92 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1397, allocations: 46.61 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.3005/0.4402, allocations: 4.709 MB / 379.2 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003545/0.4438, allocations: 1.269 MB / 380.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005231/0.4444, allocations: 14.75 kB / 380.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004172/0.4448, allocations: 113 kB / 380.6 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005678/0.4454, allocations: 247.2 kB / 380.8 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009545/0.4464, allocations: 303.4 kB / 381.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.4477, allocations: 1.05 MB / 382.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005154/0.4483, allocations: 265.3 kB / 382.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008747/0.4492, allocations: 407.3 kB / 382.8 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008959/0.4501, allocations: 455 kB / 383.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.4503, allocations: 85.69 kB / 383.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003677/0.4507, allocations: 109.7 kB / 383.5 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002305/0.4509, allocations: 189.5 kB / 383.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004644/0.4514, allocations: 433.2 kB / 384.1 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001424/0.4528, allocations: 0.9724 MB / 385.1 MB, free: 8.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4528, allocations: 4 kB / 385.1 MB, free: 8.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4529, allocations: 0 / 385.1 MB, free: 8.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.694e-05/0.4529, allocations: 0 / 385.1 MB, free: 8.141 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.00275/0.4556, allocations: 1.212 MB / 386.3 MB, free: 7.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.4557, allocations: 10.56 kB / 386.3 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001819/0.4559, allocations: 88.78 kB / 386.4 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007489/0.4566, allocations: 474.4 kB / 386.8 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.589e-05/0.4567, allocations: 46.59 kB / 386.9 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.4568, allocations: 61.83 kB / 386.9 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/0.4584, allocations: 0.6382 MB / 387.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.575e-05/0.4584, allocations: 2.938 kB / 387.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.265e-05/0.4585, allocations: 21.94 kB / 387.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.4585, allocations: 14.22 kB / 387.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.4603, allocations: 0.6826 MB / 388.3 MB, free: 6.402 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.004221/0.4645, allocations: 2.306 MB / 390.6 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.4662, allocations: 0.5797 MB / 391.2 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008696/0.4671, allocations: 335.4 kB / 391.5 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.659e-05/0.4672, allocations: 9.734 kB / 391.5 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/0.4682, allocations: 433.5 kB / 391.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.575e-06/0.4682, allocations: 0 / 391.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.1135/0.5818, allocations: 15.41 MB / 407.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001818/0.582, allocations: 149.5 kB / 407.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.5831, allocations: 494.8 kB / 408 MB, free: 13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004002/0.5835, allocations: 41.7 kB / 408 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004762/0.584, allocations: 366.2 kB / 408.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006481/0.5847, allocations: 315.3 kB / 408.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005798/0.5853, allocations: 174.5 kB / 408.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003016/0.5856, allocations: 382.8 kB / 409.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002388/0.588, allocations: 0.7163 MB / 409.9 MB, free: 11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002565/0.5906, allocations: 0.9309 MB / 410.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004686/0.5953, allocations: 1.658 MB / 412.5 MB, free: 8.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.059e-05/0.5953, allocations: 0 / 412.5 MB, free: 8.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02388/0.6192, allocations: 5.352 MB / 417.9 MB, free: 2.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-05/0.6193, allocations: 63.39 kB / 418 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.08e-05/0.6194, allocations: 8 kB / 418 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03468/0.6541, allocations: 6.845 MB / 424.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008296/0.6549, allocations: 140.6 kB / 424.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007773/0.6628, allocations: 3.159 MB / 428.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002011/0.6648, allocations: 183.8 kB / 428.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002747/0.6651, allocations: 51.97 kB / 428.3 MB, free: 8.363 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.0008658/0.666, allocations: 219.8 kB / 428.5 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003924/0.6664, allocations: 83 kB / 428.6 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0223/0.6887, allocations: 5.098 MB / 433.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.623e-05/0.6888, allocations: 11.98 kB / 433.7 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.828e-05/0.6889, allocations: 4 kB / 433.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.123e-05/0.6889, allocations: 3.984 kB / 433.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002502/0.6914, allocations: 1.094 MB / 434.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/0.6915, allocations: 7.938 kB / 434.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005743/0.6921, allocations: 91.81 kB / 434.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03337/0.7254, allocations: 6.795 MB / 441.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003488/0.7258, allocations: 25.97 kB / 441.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006262/0.7321, allocations: 3.036 MB / 444.8 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.7322, allocations: 4 kB / 444.8 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02524/0.7574, allocations: 5.988 MB / 450.8 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003806/0.7578, allocations: 144.2 kB / 450.9 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003389/0.7582, allocations: 20 kB / 450.9 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001571/0.7598, allocations: 171.8 kB / 451.1 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003485/0.7601, allocations: 100.9 kB / 451.2 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/0.7603, allocations: 27.98 kB / 451.2 MB, free: 1.297 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005028/0.7608, allocations: 338.9 kB / 451.6 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7608, allocations: 0 / 451.6 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001128/0.7619, allocations: 256 kB / 451.8 MB, free: 0.7188 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.0003804/0.7623, allocations: 140.7 kB / 452 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007204/0.7695, allocations: 2.166 MB / 454.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.198e-06/0.7696, allocations: 0 / 454.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003498/0.7731, allocations: 1.097 MB / 455.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000975/0.7741, allocations: 140.3 kB / 455.4 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004384/0.7785, allocations: 1.718 MB / 457.1 MB, free: 11.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005381/0.779, allocations: 0.9389 MB / 458 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003034/0.7793, allocations: 58.06 kB / 458.1 MB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.7795, allocations: 35.44 kB / 458.1 MB, free: 10.36 MB / 382.1 MB Notification: Performance of SimCode: time 1.472e-06/0.7795, allocations: 0 / 458.1 MB, free: 10.36 MB / 382.1 MB Notification: Performance of Templates: time 0.04231/0.8218, allocations: 23.52 MB / 481.6 MB, free: 2.82 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)