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.006942/0.006942, allocations: 101.5 kB / 15.73 MB, free: 5.98 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.001594/0.001595, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.536/1.536, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001146/0.001146, allocations: 59.25 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09954/0.1007, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005566/0.1063, allocations: 4.704 MB / 377.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002678/0.109, allocations: 1.276 MB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004129/0.1095, allocations: 8 kB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003479/0.1099, allocations: 114.8 kB / 379.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005279/0.1104, allocations: 253.7 kB / 379.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007271/0.1112, allocations: 303.5 kB / 379.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009292/0.1121, allocations: 1.048 MB / 380.9 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003799/0.1125, allocations: 270.3 kB / 381.1 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004236/0.1129, allocations: 414.5 kB / 381.5 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000482/0.1134, allocations: 446.1 kB / 382 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.1135, allocations: 91.94 kB / 382.1 MB, free: 8.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.1137, allocations: 112 kB / 382.2 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.1139, allocations: 191.3 kB / 382.4 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003742/0.1143, allocations: 425.9 kB / 382.8 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.1154, allocations: 0.9771 MB / 383.8 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1154, allocations: 0 / 383.8 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1154, allocations: 0 / 383.8 MB, free: 6.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.1154, allocations: 4 kB / 383.8 MB, free: 6.66 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.002326/0.1178, allocations: 1.211 MB / 385 MB, free: 5.383 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.1178, allocations: 8.031 kB / 385 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.118, allocations: 87.91 kB / 385.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006773/0.1187, allocations: 465.5 kB / 385.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.1187, allocations: 53.61 kB / 385.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.1188, allocations: 60.38 kB / 385.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.1202, allocations: 0.6392 MB / 386.3 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.1202, allocations: 4 kB / 386.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.176e-05/0.1203, allocations: 20 kB / 386.3 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.1203, allocations: 16 kB / 386.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.122, allocations: 0.6765 MB / 387 MB, free: 3.32 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.003579/0.1256, allocations: 2.316 MB / 389.3 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.127, allocations: 0.5788 MB / 389.9 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007192/0.1277, allocations: 333.9 kB / 390.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.507e-05/0.1278, allocations: 8.438 kB / 390.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000889/0.1287, allocations: 441.2 kB / 390.7 MB, free: 15.47 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.014e-06/0.1287, allocations: 0 / 390.7 MB, free: 15.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06819/0.1969, allocations: 15.4 MB / 406.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.496e-05/0.197, allocations: 141.5 kB / 406.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006495/0.1977, allocations: 498.8 kB / 406.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001905/0.1979, allocations: 45.7 kB / 406.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/0.1981, allocations: 360 kB / 407.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002729/0.1984, allocations: 315.4 kB / 407.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003577/0.1988, allocations: 182.5 kB / 407.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.199, allocations: 382.8 kB / 407.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002016/0.201, allocations: 0.7202 MB / 408.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002138/0.2031, allocations: 0.9265 MB / 409.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004077/0.2072, allocations: 1.658 MB / 411.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2072, allocations: 0 / 411.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02297/0.2302, allocations: 5.35 MB / 416.6 MB, free: 5.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.522e-05/0.2303, allocations: 67.39 kB / 416.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.2304, allocations: 8 kB / 416.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03248/0.2629, allocations: 6.844 MB / 423.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007011/0.2636, allocations: 139.7 kB / 423.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006605/0.2702, allocations: 3.164 MB / 426.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.2718, allocations: 175.8 kB / 427 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.942e-05/0.2719, allocations: 47.97 kB / 427 MB, free: 10.64 MB / 366.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.0004092/0.2723, allocations: 225.7 kB / 427.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/0.2724, allocations: 79.06 kB / 427.3 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02106/0.2935, allocations: 5.103 MB / 432.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/0.2936, allocations: 8 kB / 432.4 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.2936, allocations: 4 kB / 432.4 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.507e-05/0.2936, allocations: 3.984 kB / 432.4 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.2954, allocations: 1.096 MB / 433.5 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.2954, allocations: 4.188 kB / 433.5 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.296, allocations: 99.88 kB / 433.6 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03198/0.328, allocations: 6.797 MB / 440.4 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002007/0.3282, allocations: 19.98 kB / 440.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005673/0.3339, allocations: 3.044 MB / 443.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.334, allocations: 0 / 443.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02323/0.3572, allocations: 5.991 MB / 449.5 MB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003322/0.3576, allocations: 144.2 kB / 449.6 MB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001818/0.3578, allocations: 20 kB / 449.7 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.3591, allocations: 175.8 kB / 449.8 MB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002486/0.3593, allocations: 96.88 kB / 449.9 MB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.88e-05/0.3594, allocations: 31.97 kB / 449.9 MB, free: 3.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003783/0.3598, allocations: 338.9 kB / 450.3 MB, free: 3.188 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3598, allocations: 0 / 450.3 MB, free: 3.188 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007282/0.3606, allocations: 248 kB / 450.5 MB, free: 2.945 MB / 382.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.0003322/0.3609, allocations: 127.2 kB / 450.6 MB, free: 2.812 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006807/0.3677, allocations: 2.18 MB / 452.8 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.3678, allocations: 0 / 452.8 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2347/0.6024, allocations: 1.086 MB / 453.9 MB, free: 77.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009454/0.6034, allocations: 127.6 kB / 454 MB, free: 77.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004448/0.6079, allocations: 1.726 MB / 455.8 MB, free: 76.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005519/0.6085, allocations: 0.9371 MB / 456.7 MB, free: 76.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003351/0.6088, allocations: 57.3 kB / 456.8 MB, free: 76.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.609, allocations: 34.39 kB / 456.8 MB, free: 76.03 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.609, allocations: 0 / 456.8 MB, free: 76.03 MB / 382.1 MB Notification: Performance of Templates: time 0.03262/0.6416, allocations: 22.52 MB / 479.3 MB, free: 62.99 MB / 382.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)