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.001518/0.001519, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001861/0.001861, allocations: 190.6 kB / 16.25 MB, free: 6.621 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.869/1.869, allocations: 205.1 MB / 222.1 MB, free: 4.918 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.001315/0.001315, allocations: 47.94 kB / 278.2 MB, free: 12.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.246, allocations: 46.62 MB / 324.8 MB, free: 1.82 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.004717/0.2508, allocations: 4.737 MB / 329.6 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002382/0.2532, allocations: 1.259 MB / 330.8 MB, free: 13 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004073/0.2536, allocations: 13 kB / 330.9 MB, free: 12.99 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002915/0.254, allocations: 84.2 kB / 330.9 MB, free: 12.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000523/0.2545, allocations: 213.3 kB / 331.1 MB, free: 12.73 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007186/0.2552, allocations: 263.2 kB / 331.4 MB, free: 12.51 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.2564, allocations: 1.054 MB / 332.5 MB, free: 11.88 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004242/0.2568, allocations: 251.9 kB / 332.7 MB, free: 11.74 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005002/0.2573, allocations: 412 kB / 333.1 MB, free: 11.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004363/0.2577, allocations: 449.1 kB / 333.5 MB, free: 11.18 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001055/0.2579, allocations: 84.5 kB / 333.6 MB, free: 11.18 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.2581, allocations: 105.3 kB / 333.7 MB, free: 11.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.2582, allocations: 189.7 kB / 333.9 MB, free: 11.01 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003431/0.2586, allocations: 439 kB / 334.3 MB, free: 10.6 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008826/0.2595, allocations: 0.959 MB / 335.3 MB, free: 9.637 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2595, allocations: 0 / 335.3 MB, free: 9.637 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.2595, allocations: 4 kB / 335.3 MB, free: 9.633 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.2595, allocations: 0 / 335.3 MB, free: 9.633 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.002377/0.2619, allocations: 1.207 MB / 336.5 MB, free: 8.355 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.2619, allocations: 12.03 kB / 336.5 MB, free: 8.344 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001679/0.2621, allocations: 87.91 kB / 336.6 MB, free: 8.258 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005739/0.2627, allocations: 461.3 kB / 337.1 MB, free: 7.766 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.2627, allocations: 49.69 kB / 337.1 MB, free: 7.719 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.2629, allocations: 60.38 kB / 337.2 MB, free: 7.66 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.2642, allocations: 0.6353 MB / 337.8 MB, free: 7.016 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.2642, allocations: 0 / 337.8 MB, free: 7.016 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.262e-05/0.2643, allocations: 28 kB / 337.8 MB, free: 6.988 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.2643, allocations: 16 kB / 337.8 MB, free: 6.973 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/0.2658, allocations: 0.6765 MB / 338.5 MB, free: 6.297 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.003614/0.2694, allocations: 2.335 MB / 340.9 MB, free: 3.809 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.2707, allocations: 0.5827 MB / 341.4 MB, free: 3.219 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006752/0.2714, allocations: 341.9 kB / 341.8 MB, free: 2.883 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.064e-05/0.2715, allocations: 8.422 kB / 341.8 MB, free: 2.875 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009074/0.2724, allocations: 421.4 kB / 342.2 MB, free: 2.438 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.134e-06/0.2724, allocations: 4 kB / 342.2 MB, free: 2.434 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.07627/0.3487, allocations: 15.4 MB / 357.6 MB, free: 2.938 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.3488, allocations: 149.5 kB / 357.7 MB, free: 2.758 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005852/0.3494, allocations: 494.8 kB / 358.2 MB, free: 2.266 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001728/0.3496, allocations: 41.7 kB / 358.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002566/0.3499, allocations: 360 kB / 358.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002746/0.3501, allocations: 323.3 kB / 358.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003461/0.3505, allocations: 178.5 kB / 359.1 MB, free: 1.359 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.3507, allocations: 378.8 kB / 359.5 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001947/0.3526, allocations: 0.7279 MB / 360.2 MB, free: 260 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002021/0.3547, allocations: 0.9188 MB / 361.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00379/0.3585, allocations: 1.67 MB / 362.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3585, allocations: 3.938 kB / 362.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02247/0.381, allocations: 5.343 MB / 368.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.826e-05/0.3811, allocations: 67.39 kB / 368.2 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.3811, allocations: 8 kB / 368.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03352/0.4147, allocations: 6.852 MB / 375.1 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006588/0.4154, allocations: 135.8 kB / 375.2 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006595/0.422, allocations: 3.161 MB / 378.4 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.4237, allocations: 183.8 kB / 378.5 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.4238, allocations: 43.97 kB / 378.6 MB, free: 13.59 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.0004188/0.4242, allocations: 225.7 kB / 378.8 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.4244, allocations: 79 kB / 378.9 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02129/0.4457, allocations: 5.095 MB / 384 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/0.4457, allocations: 19.98 kB / 384 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.4457, allocations: 0 / 384 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/0.4458, allocations: 3.984 kB / 384 MB, free: 8.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001408/0.4472, allocations: 1.079 MB / 385.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4472, allocations: 4.188 kB / 385.1 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004967/0.4477, allocations: 103.8 kB / 385.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03228/0.48, allocations: 6.793 MB / 392 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002269/0.4803, allocations: 27.97 kB / 392 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005593/0.4859, allocations: 3.06 MB / 395.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4859, allocations: 0 / 395.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02366/0.5096, allocations: 5.983 MB / 401 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002244/0.5098, allocations: 140.3 kB / 401.2 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001823/0.51, allocations: 16 kB / 401.2 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/0.5114, allocations: 171.8 kB / 401.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/0.5117, allocations: 96.88 kB / 401.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.854e-05/0.5118, allocations: 31.98 kB / 401.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003532/0.5121, allocations: 334.9 kB / 401.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5121, allocations: 3.938 kB / 401.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006942/0.5128, allocations: 256 kB / 402.1 MB, free: 5.902 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.0002636/0.5131, allocations: 131.2 kB / 402.2 MB, free: 5.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006641/0.5198, allocations: 2.184 MB / 404.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5198, allocations: 0 / 404.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003504/0.5233, allocations: 1.094 MB / 405.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008501/0.5242, allocations: 133.4 kB / 405.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004068/0.5283, allocations: 2.061 MB / 407.7 MB, free: 252 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.5287, allocations: 0.9427 MB / 408.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003016/0.529, allocations: 58.06 kB / 408.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.5292, allocations: 35.44 kB / 408.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5292, allocations: 0 / 408.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of Templates: time 0.03322/0.5624, allocations: 21.92 MB / 430.6 MB, free: 9.23 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)