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.001157/0.001157, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 195.2 kB / 16.53 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.482/1.482, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.001364/0.001365, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2594, allocations: 46.63 MB / 325.3 MB, free: 1.988 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005887/0.2653, allocations: 4.718 MB / 330 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002601/0.268, allocations: 1.267 MB / 331.3 MB, free: 13.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.2683, allocations: 13.09 kB / 331.3 MB, free: 13.15 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002832/0.2686, allocations: 112.7 kB / 331.4 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004413/0.269, allocations: 247.9 kB / 331.7 MB, free: 12.83 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006793/0.2697, allocations: 300.2 kB / 331.9 MB, free: 12.57 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001101/0.2708, allocations: 1.054 MB / 333 MB, free: 11.95 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000415/0.2712, allocations: 250.6 kB / 333.2 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000526/0.2718, allocations: 409.5 kB / 333.6 MB, free: 11.56 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005338/0.2723, allocations: 453.9 kB / 334.1 MB, free: 11.22 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.2724, allocations: 84 kB / 334.2 MB, free: 11.14 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002399/0.2727, allocations: 112 kB / 334.3 MB, free: 11.03 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001803/0.2729, allocations: 191.3 kB / 334.5 MB, free: 10.84 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000389/0.2733, allocations: 429.9 kB / 334.9 MB, free: 10.42 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008338/0.2741, allocations: 0.9629 MB / 335.8 MB, free: 9.453 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2741, allocations: 4 kB / 335.9 MB, free: 9.449 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.21e-06/0.2741, allocations: 0 / 335.9 MB, free: 9.449 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.2742, allocations: 3.938 kB / 335.9 MB, free: 9.445 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.002328/0.2765, allocations: 1.204 MB / 337.1 MB, free: 8.172 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.2766, allocations: 12.03 kB / 337.1 MB, free: 8.16 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.2767, allocations: 87.91 kB / 337.2 MB, free: 8.074 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006334/0.2774, allocations: 465.3 kB / 337.6 MB, free: 7.578 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/0.2774, allocations: 49.69 kB / 337.7 MB, free: 7.531 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.84e-05/0.2775, allocations: 64.31 kB / 337.7 MB, free: 7.469 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.2788, allocations: 0.6353 MB / 338.4 MB, free: 6.828 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.2789, allocations: 3.984 kB / 338.4 MB, free: 6.824 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.613e-05/0.2789, allocations: 24 kB / 338.4 MB, free: 6.801 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.2789, allocations: 12 kB / 338.4 MB, free: 6.789 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.2806, allocations: 0.6843 MB / 339.1 MB, free: 6.102 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.00383/0.2844, allocations: 2.32 MB / 341.4 MB, free: 3.629 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.2859, allocations: 0.5866 MB / 342 MB, free: 3.035 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007702/0.2867, allocations: 338 kB / 342.3 MB, free: 2.703 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.855e-05/0.2868, allocations: 8.422 kB / 342.3 MB, free: 2.695 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.2879, allocations: 433.4 kB / 342.7 MB, free: 2.246 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.264e-06/0.2879, allocations: 0 / 342.7 MB, free: 2.246 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06544/0.3534, allocations: 15.41 MB / 358.2 MB, free: 2.746 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001853/0.3536, allocations: 145.5 kB / 358.3 MB, free: 2.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009211/0.3546, allocations: 494.8 kB / 358.8 MB, free: 2.078 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002613/0.3548, allocations: 45.69 kB / 358.8 MB, free: 2.027 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003709/0.3552, allocations: 364 kB / 359.2 MB, free: 1.664 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003526/0.3556, allocations: 315.3 kB / 359.5 MB, free: 1.352 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004099/0.356, allocations: 178.5 kB / 359.7 MB, free: 1.172 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002333/0.3562, allocations: 378.8 kB / 360 MB, free: 0.793 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002035/0.3583, allocations: 0.7202 MB / 360.8 MB, free: 76 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00204/0.3603, allocations: 0.9265 MB / 361.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004033/0.3644, allocations: 1.662 MB / 363.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.3644, allocations: 0 / 363.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02213/0.3865, allocations: 5.347 MB / 368.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.995e-05/0.3867, allocations: 63.41 kB / 368.8 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.3867, allocations: 8 kB / 368.8 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03223/0.4189, allocations: 6.852 MB / 375.6 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006772/0.4196, allocations: 135.8 kB / 375.7 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006863/0.4265, allocations: 3.164 MB / 378.9 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/0.4283, allocations: 175.9 kB / 379.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.4284, allocations: 47.97 kB / 379.1 MB, free: 13.42 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.0004343/0.4288, allocations: 213.7 kB / 379.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.429, allocations: 79.14 kB / 379.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02122/0.4502, allocations: 5.114 MB / 384.5 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.536e-05/0.4503, allocations: 8 kB / 384.5 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.4503, allocations: 4 kB / 384.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.062e-05/0.4504, allocations: 3.984 kB / 384.5 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.4518, allocations: 1.09 MB / 385.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.4519, allocations: 3.938 kB / 385.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000509/0.4524, allocations: 87.89 kB / 385.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03155/0.4839, allocations: 6.805 MB / 392.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002714/0.4843, allocations: 27.91 kB / 392.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005544/0.4898, allocations: 3.048 MB / 395.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.4898, allocations: 11.92 kB / 395.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02309/0.5129, allocations: 5.972 MB / 401.6 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002475/0.5132, allocations: 144.2 kB / 401.7 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.5134, allocations: 20 kB / 401.7 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.5147, allocations: 171.8 kB / 401.9 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/0.515, allocations: 96.88 kB / 402 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.052e-05/0.5151, allocations: 31.97 kB / 402 MB, free: 6.301 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003504/0.5154, allocations: 338.8 kB / 402.4 MB, free: 5.973 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5154, allocations: 4 kB / 402.4 MB, free: 5.969 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006669/0.5161, allocations: 252 kB / 402.6 MB, free: 5.723 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.0002565/0.5164, allocations: 143.2 kB / 402.8 MB, free: 5.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006733/0.5231, allocations: 2.181 MB / 404.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.5232, allocations: 0 / 404.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003409/0.5266, allocations: 1.101 MB / 406 MB, free: 2.262 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008212/0.5274, allocations: 125.3 kB / 406.2 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.5311, allocations: 1.733 MB / 407.9 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.5316, allocations: 0.9311 MB / 408.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002688/0.5318, allocations: 54.08 kB / 408.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.532, allocations: 39.42 kB / 408.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.532, allocations: 0 / 408.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of Templates: time 0.03157/0.5635, allocations: 22.29 MB / 431.2 MB, free: 9.008 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)