Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001456/0.001456, allocations: 104.4 kB / 16.92 MB, free: 5.738 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.001546/0.001546, allocations: 191.4 kB / 17.85 MB, free: 5.168 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.444/1.444, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.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.001249/0.001249, allocations: 52.14 kB / 280 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1113, allocations: 46.63 MB / 326.6 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005628/0.117, allocations: 4.711 MB / 331.3 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002566/0.1196, allocations: 1.272 MB / 332.6 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003189/0.1199, allocations: 12 kB / 332.6 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003133/0.1203, allocations: 114.8 kB / 332.7 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004401/0.1207, allocations: 245.7 kB / 333 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007288/0.1215, allocations: 303.5 kB / 333.3 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.1225, allocations: 1.044 MB / 334.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004349/0.123, allocations: 258.4 kB / 334.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004744/0.1235, allocations: 402.6 kB / 335 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004539/0.1239, allocations: 450.1 kB / 335.4 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.124, allocations: 88 kB / 335.5 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000211/0.1243, allocations: 108 kB / 335.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.1244, allocations: 191.3 kB / 335.8 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003901/0.1248, allocations: 437.8 kB / 336.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000898/0.1257, allocations: 0.9619 MB / 337.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1258, allocations: 3.938 kB / 337.2 MB, free: 9.848 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1258, allocations: 0 / 337.2 MB, free: 9.848 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.1258, allocations: 0 / 337.2 MB, free: 9.848 MB / 286.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.00233/0.1281, allocations: 1.211 MB / 338.4 MB, free: 8.566 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.1282, allocations: 8.031 kB / 338.4 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.1283, allocations: 87.91 kB / 338.5 MB, free: 8.473 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005874/0.1289, allocations: 457.5 kB / 338.9 MB, free: 7.984 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.069e-05/0.129, allocations: 45.69 kB / 339 MB, free: 7.941 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.956e-05/0.1291, allocations: 64.31 kB / 339 MB, free: 7.879 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.1304, allocations: 0.6431 MB / 339.7 MB, free: 7.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.1304, allocations: 0 / 339.7 MB, free: 7.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.211e-05/0.1305, allocations: 24 kB / 339.7 MB, free: 7.207 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.1305, allocations: 16 kB / 339.7 MB, free: 7.191 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001719/0.1322, allocations: 0.6726 MB / 340.4 MB, free: 6.516 MB / 286.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.004317/0.1366, allocations: 2.339 MB / 342.7 MB, free: 4.027 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.1381, allocations: 0.5904 MB / 343.3 MB, free: 3.426 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007782/0.1389, allocations: 326 kB / 343.6 MB, free: 3.105 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.705e-05/0.139, allocations: 8.438 kB / 343.6 MB, free: 3.098 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.1402, allocations: 429.4 kB / 344.1 MB, free: 2.652 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 5.991e-06/0.1402, allocations: 0 / 344.1 MB, free: 2.652 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06621/0.2064, allocations: 15.41 MB / 359.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/0.2066, allocations: 149.5 kB / 359.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008266/0.2074, allocations: 498.8 kB / 360.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002297/0.2077, allocations: 49.7 kB / 360.1 MB, free: 2.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003421/0.208, allocations: 363.9 kB / 360.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002969/0.2083, allocations: 311.5 kB / 360.8 MB, free: 1.746 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003475/0.2087, allocations: 174.5 kB / 361 MB, free: 1.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.2089, allocations: 382.8 kB / 361.3 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001975/0.2109, allocations: 0.7163 MB / 362.1 MB, free: 484 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002055/0.2129, allocations: 0.9304 MB / 363 MB, free: 15.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003976/0.2169, allocations: 1.662 MB / 364.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.2169, allocations: 4 kB / 364.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02212/0.2391, allocations: 5.347 MB / 370 MB, free: 8.332 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.672e-05/0.2392, allocations: 59.41 kB / 370.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.2392, allocations: 4 kB / 370.1 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03172/0.271, allocations: 6.851 MB / 376.9 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007506/0.2718, allocations: 143.8 kB / 377.1 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1908/0.4626, allocations: 3.156 MB / 380.2 MB, free: 52.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/0.4645, allocations: 178.2 kB / 380.4 MB, free: 52.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.4646, allocations: 44.67 kB / 380.4 MB, free: 52.86 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.0005409/0.4652, allocations: 226.3 kB / 380.7 MB, free: 52.74 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.4654, allocations: 79.38 kB / 380.7 MB, free: 52.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02267/0.4881, allocations: 5.091 MB / 385.8 MB, free: 52.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.929e-05/0.4882, allocations: 9.188 kB / 385.8 MB, free: 52.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.4882, allocations: 0.875 kB / 385.8 MB, free: 52.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-05/0.4882, allocations: 16.44 kB / 385.8 MB, free: 52.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.4898, allocations: 1.088 MB / 386.9 MB, free: 51.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.4898, allocations: 0 / 386.9 MB, free: 51.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005497/0.4903, allocations: 92.19 kB / 387 MB, free: 51.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03077/0.5211, allocations: 6.798 MB / 393.8 MB, free: 49.99 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002653/0.5214, allocations: 31.06 kB / 393.9 MB, free: 49.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004925/0.5264, allocations: 3.055 MB / 396.9 MB, free: 47.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.5264, allocations: 0 / 396.9 MB, free: 47.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02065/0.5471, allocations: 5.985 MB / 402.9 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002483/0.5473, allocations: 143.2 kB / 403 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001588/0.5475, allocations: 20.86 kB / 403.1 MB, free: 42.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.5487, allocations: 159.9 kB / 403.2 MB, free: 41.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002373/0.549, allocations: 104.9 kB / 403.3 MB, free: 41.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.148e-05/0.5491, allocations: 27.98 kB / 403.3 MB, free: 41.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000331/0.5494, allocations: 334.9 kB / 403.7 MB, free: 41.51 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5494, allocations: 0 / 403.7 MB, free: 41.51 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007448/0.5502, allocations: 257 kB / 403.9 MB, free: 41.26 MB / 318.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.0002804/0.5504, allocations: 141.8 kB / 404.1 MB, free: 41.12 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005917/0.5564, allocations: 2.175 MB / 406.2 MB, free: 38.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.5564, allocations: 6 kB / 406.2 MB, free: 38.92 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002988/0.5594, allocations: 1.097 MB / 407.3 MB, free: 37.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007235/0.5601, allocations: 133.8 kB / 407.5 MB, free: 37.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.5634, allocations: 1.735 MB / 409.2 MB, free: 35.97 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.5637, allocations: 0.9375 MB / 410.1 MB, free: 35.01 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002408/0.564, allocations: 57.17 kB / 410.2 MB, free: 34.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.5641, allocations: 35.44 kB / 410.2 MB, free: 34.92 MB / 318.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5641, allocations: 0 / 410.2 MB, free: 34.92 MB / 318.1 MB Notification: Performance of Templates: time 0.02605/0.5901, allocations: 22.3 MB / 432.5 MB, free: 12.62 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)