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.0016/0.0016, 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.002402/0.002402, allocations: 187.7 kB / 16.14 MB, free: 6.66 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.64/1.64, allocations: 205.1 MB / 222 MB, free: 4.945 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.001131/0.001131, allocations: 51.94 kB / 278 MB, free: 12.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2533, allocations: 46.62 MB / 324.7 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006284/0.2597, allocations: 4.74 MB / 329.4 MB, free: 14.06 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003733/0.2635, allocations: 1.275 MB / 330.7 MB, free: 13 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006508/0.2641, allocations: 9.125 kB / 330.7 MB, free: 13 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003698/0.2646, allocations: 84.36 kB / 330.8 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000646/0.2652, allocations: 217.3 kB / 331 MB, free: 12.74 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008987/0.2661, allocations: 253.7 kB / 331.2 MB, free: 12.53 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.2674, allocations: 0.9966 MB / 332.2 MB, free: 11.94 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004424/0.2678, allocations: 216.1 kB / 332.4 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007019/0.2686, allocations: 371.1 kB / 332.8 MB, free: 11.6 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005288/0.2691, allocations: 428.5 kB / 333.2 MB, free: 11.31 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.2692, allocations: 51.66 kB / 333.3 MB, free: 11.31 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002404/0.2695, allocations: 74.14 kB / 333.3 MB, free: 11.3 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.2696, allocations: 153.7 kB / 333.5 MB, free: 11.17 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004427/0.2701, allocations: 400.4 kB / 333.9 MB, free: 10.9 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008469/0.271, allocations: 0.9311 MB / 334.8 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.271, allocations: 0 / 334.8 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.271, allocations: 4 kB / 334.8 MB, free: 9.992 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.271, allocations: 0 / 334.8 MB, free: 9.992 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.002522/0.2735, allocations: 1.211 MB / 336 MB, free: 8.715 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.2736, allocations: 8.031 kB / 336 MB, free: 8.707 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.2738, allocations: 87.91 kB / 336.1 MB, free: 8.621 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006141/0.2744, allocations: 469.3 kB / 336.6 MB, free: 8.121 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.886e-05/0.2744, allocations: 45.69 kB / 336.6 MB, free: 8.078 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.2746, allocations: 60.38 kB / 336.7 MB, free: 8.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.2759, allocations: 0.6392 MB / 337.3 MB, free: 7.371 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.276, allocations: 0 / 337.3 MB, free: 7.371 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.124e-05/0.276, allocations: 24 kB / 337.4 MB, free: 7.348 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.2761, allocations: 16 kB / 337.4 MB, free: 7.332 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/0.2777, allocations: 0.6726 MB / 338 MB, free: 6.66 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.2815, allocations: 2.327 MB / 340.4 MB, free: 4.176 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.2829, allocations: 0.5866 MB / 341 MB, free: 3.582 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000696/0.2836, allocations: 334 kB / 341.3 MB, free: 3.254 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.23e-05/0.2837, allocations: 16.41 kB / 341.3 MB, free: 3.238 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.2847, allocations: 425.4 kB / 341.7 MB, free: 2.797 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.575e-06/0.2847, allocations: 0 / 341.7 MB, free: 2.797 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.07038/0.3551, allocations: 15.39 MB / 357.1 MB, free: 3.309 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.3552, allocations: 149.5 kB / 357.3 MB, free: 3.129 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006929/0.3559, allocations: 494.8 kB / 357.7 MB, free: 2.641 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002214/0.3562, allocations: 49.64 kB / 357.8 MB, free: 2.586 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.3565, allocations: 364 kB / 358.1 MB, free: 2.223 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000423/0.3569, allocations: 315.3 kB / 358.5 MB, free: 1.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003969/0.3573, allocations: 182.5 kB / 358.6 MB, free: 1.727 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3575, allocations: 378.8 kB / 359 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002128/0.3596, allocations: 0.7202 MB / 359.7 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002201/0.3618, allocations: 0.9225 MB / 360.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004091/0.366, allocations: 1.67 MB / 362.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.809e-06/0.366, allocations: 4 kB / 362.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02341/0.3894, allocations: 5.343 MB / 367.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.921e-05/0.3895, allocations: 71.39 kB / 367.7 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.862e-05/0.3896, allocations: 4 kB / 367.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03391/0.4235, allocations: 6.84 MB / 374.6 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007282/0.4243, allocations: 143.7 kB / 374.7 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006932/0.4312, allocations: 3.157 MB / 377.9 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/0.433, allocations: 179.8 kB / 378 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002071/0.4333, allocations: 47.97 kB / 378.1 MB, free: 13.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.0006725/0.434, allocations: 226.2 kB / 378.3 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000254/0.4342, allocations: 79.05 kB / 378.4 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02341/0.4576, allocations: 5.107 MB / 383.5 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.036e-05/0.4577, allocations: 11.98 kB / 383.5 MB, free: 8.523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.4577, allocations: 0 / 383.5 MB, free: 8.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.41e-05/0.4578, allocations: 3.984 kB / 383.5 MB, free: 8.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.4596, allocations: 1.082 MB / 384.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.742e-05/0.4597, allocations: 7.938 kB / 384.6 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005254/0.4602, allocations: 95.88 kB / 384.7 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.033/0.4932, allocations: 6.801 MB / 391.5 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002863/0.4936, allocations: 23.97 kB / 391.5 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006036/0.4996, allocations: 3.063 MB / 394.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.4997, allocations: 0 / 394.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02432/0.524, allocations: 5.983 MB / 400.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002693/0.5243, allocations: 140.3 kB / 400.7 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003266/0.5247, allocations: 16 kB / 400.7 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/0.5262, allocations: 179.8 kB / 400.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000336/0.5266, allocations: 96.86 kB / 401 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001309/0.5267, allocations: 31.98 kB / 401 MB, free: 6.836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004189/0.5271, allocations: 330.9 kB / 401.3 MB, free: 6.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5271, allocations: 0 / 401.3 MB, free: 6.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008896/0.528, allocations: 256 kB / 401.6 MB, free: 6.266 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.0002858/0.5283, allocations: 131.2 kB / 401.7 MB, free: 6.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006687/0.535, allocations: 2.164 MB / 403.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.5351, allocations: 0 / 403.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003454/0.5385, allocations: 1.094 MB / 405 MB, free: 2.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009078/0.5395, allocations: 122.2 kB / 405.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/0.5439, allocations: 2.059 MB / 407.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005031/0.5444, allocations: 0.9427 MB / 408.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003167/0.5448, allocations: 58.06 kB / 408.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.5449, allocations: 35.44 kB / 408.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5449, allocations: 0 / 408.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of Templates: time 0.03457/0.5795, allocations: 20.61 MB / 428.8 MB, free: 10.94 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)