Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001327/0.001327, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001644/0.001644, allocations: 194.2 kB / 16.13 MB, free: 6.664 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.499/1.499, allocations: 205.1 MB / 222 MB, free: 4.738 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.00132/0.00132, allocations: 47.94 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2556, allocations: 46.63 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005296/0.261, allocations: 4.72 MB / 329.4 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002651/0.2637, allocations: 1.291 MB / 330.7 MB, free: 13.1 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003869/0.2641, allocations: 9.031 kB / 330.7 MB, free: 13.1 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003006/0.2644, allocations: 80.03 kB / 330.8 MB, free: 13.03 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004746/0.2649, allocations: 213.2 kB / 331 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.2656, allocations: 258 kB / 331.2 MB, free: 12.62 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009212/0.2665, allocations: 0.9962 MB / 332.2 MB, free: 12.04 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004058/0.2669, allocations: 220.1 kB / 332.4 MB, free: 11.9 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006011/0.2675, allocations: 367.5 kB / 332.8 MB, free: 11.7 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004556/0.268, allocations: 429 kB / 333.2 MB, free: 11.41 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.2681, allocations: 50.28 kB / 333.3 MB, free: 11.41 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002279/0.2683, allocations: 83.2 kB / 333.4 MB, free: 11.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.2685, allocations: 149.7 kB / 333.5 MB, free: 11.26 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000377/0.2689, allocations: 400.4 kB / 333.9 MB, free: 10.9 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007505/0.2696, allocations: 0.9317 MB / 334.8 MB, free: 9.965 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2696, allocations: 0 / 334.8 MB, free: 9.965 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2697, allocations: 0 / 334.8 MB, free: 9.965 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.2697, allocations: 0 / 334.8 MB, free: 9.965 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.002248/0.2719, allocations: 1.207 MB / 336 MB, free: 8.691 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.272, allocations: 12.03 kB / 336 MB, free: 8.68 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.2721, allocations: 91.91 kB / 336.1 MB, free: 8.59 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00055/0.2727, allocations: 469.3 kB / 336.6 MB, free: 8.09 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.524e-05/0.2727, allocations: 41.69 kB / 336.6 MB, free: 8.051 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.974e-05/0.2729, allocations: 60.38 kB / 336.7 MB, free: 7.992 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.2742, allocations: 0.6392 MB / 337.3 MB, free: 7.344 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.2742, allocations: 4 kB / 337.3 MB, free: 7.34 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.29e-05/0.2743, allocations: 28 kB / 337.4 MB, free: 7.312 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.2743, allocations: 16 kB / 337.4 MB, free: 7.297 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.2759, allocations: 0.6726 MB / 338 MB, free: 6.625 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.003549/0.2794, allocations: 2.327 MB / 340.4 MB, free: 4.141 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.2808, allocations: 0.5905 MB / 341 MB, free: 3.543 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006945/0.2815, allocations: 326 kB / 341.3 MB, free: 3.223 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.182e-05/0.2816, allocations: 12.44 kB / 341.3 MB, free: 3.211 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009662/0.2825, allocations: 425.4 kB / 341.7 MB, free: 2.77 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.435e-06/0.2826, allocations: 4 kB / 341.7 MB, free: 2.766 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06946/0.352, allocations: 15.4 MB / 357.1 MB, free: 3.27 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.328e-05/0.3522, allocations: 149.5 kB / 357.3 MB, free: 3.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006251/0.3528, allocations: 494.8 kB / 357.7 MB, free: 2.602 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001994/0.353, allocations: 49.69 kB / 357.8 MB, free: 2.547 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002502/0.3533, allocations: 352.1 kB / 358.1 MB, free: 2.195 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003297/0.3536, allocations: 323.3 kB / 358.5 MB, free: 1.875 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000377/0.354, allocations: 182.5 kB / 358.6 MB, free: 1.691 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3542, allocations: 382.8 kB / 359 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001966/0.3561, allocations: 0.7163 MB / 359.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002052/0.3582, allocations: 0.9265 MB / 360.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003891/0.3621, allocations: 1.662 MB / 362.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.3621, allocations: 4 kB / 362.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02323/0.3854, allocations: 5.347 MB / 367.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.3855, allocations: 63.41 kB / 367.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.3856, allocations: 12.12 kB / 367.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03447/0.42, allocations: 6.84 MB / 374.6 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006829/0.4208, allocations: 143.7 kB / 374.7 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006844/0.4276, allocations: 3.157 MB / 377.9 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/0.4292, allocations: 183.8 kB / 378 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/0.4294, allocations: 39.98 kB / 378.1 MB, free: 13.95 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.000446/0.4299, allocations: 226.1 kB / 378.3 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.4301, allocations: 75.06 kB / 378.4 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0221/0.4522, allocations: 5.114 MB / 383.5 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.978e-05/0.4522, allocations: 8 kB / 383.5 MB, free: 8.492 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.4523, allocations: 0 / 383.5 MB, free: 8.492 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.739e-05/0.4523, allocations: 7.969 kB / 383.5 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.454, allocations: 1.082 MB / 384.6 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/0.454, allocations: 3.938 kB / 384.6 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005348/0.4546, allocations: 95.88 kB / 384.7 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03283/0.4874, allocations: 6.801 MB / 391.5 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002796/0.4877, allocations: 27.97 kB / 391.5 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005867/0.4936, allocations: 3.059 MB / 394.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4937, allocations: 0 / 394.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02358/0.5172, allocations: 5.987 MB / 400.6 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.5175, allocations: 144.3 kB / 400.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000259/0.5178, allocations: 16 kB / 400.7 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/0.5192, allocations: 171.8 kB / 400.9 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003104/0.5195, allocations: 104.9 kB / 401 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.5196, allocations: 27.98 kB / 401 MB, free: 6.801 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004055/0.5201, allocations: 334.9 kB / 401.3 MB, free: 6.477 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5201, allocations: 0 / 401.3 MB, free: 6.477 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008037/0.5209, allocations: 252 kB / 401.6 MB, free: 6.23 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.0002919/0.5212, allocations: 127.2 kB / 401.7 MB, free: 6.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007053/0.5282, allocations: 2.164 MB / 403.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.5283, allocations: 7.938 kB / 403.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003569/0.5319, allocations: 1.086 MB / 405 MB, free: 2.816 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.533, allocations: 110.3 kB / 405.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004668/0.5377, allocations: 2.079 MB / 407.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005823/0.5383, allocations: 0.9388 MB / 408.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003987/0.5387, allocations: 58.06 kB / 408.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.5389, allocations: 31.44 kB / 408.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5389, allocations: 0 / 408.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Templates: time 0.03304/0.5719, allocations: 20.61 MB / 428.8 MB, free: 10.9 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)