Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers") translateModel(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001208, allocations: 105.9 kB / 16.31 MB, free: 5.879 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.001284/0.001285, allocations: 191.2 kB / 17.24 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 240.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05755/0.05755, allocations: 8.106 MB / 299.2 MB, free: 6.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 67.89 kB / 361.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2586, allocations: 51.52 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.008176/0.2669, allocations: 8.836 MB / 422.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005739/0.2727, allocations: 2.332 MB / 424.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.2739, allocations: 28 kB / 424.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009486/0.2748, allocations: 413.1 kB / 424.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001982/0.2769, allocations: 0.8307 MB / 425.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002599/0.2795, allocations: 1.6 MB / 427.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001764/0.2813, allocations: 1.875 MB / 429.2 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006891/0.282, allocations: 0.6921 MB / 429.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005643/0.2825, allocations: 0.7746 MB / 430.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007664/0.2833, allocations: 0.9883 MB / 431.6 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001846/0.2835, allocations: 192 kB / 431.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007396/0.2843, allocations: 435.7 kB / 432.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002281/0.2845, allocations: 402.5 kB / 432.6 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005779/0.2851, allocations: 0.9099 MB / 433.5 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001638/0.2867, allocations: 2.274 MB / 435.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.2867, allocations: 0 / 435.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.2867, allocations: 0 / 435.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.2868, allocations: 3.938 kB / 435.8 MB, free: 2.914 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.01608/0.3029, allocations: 4.152 MB / 440 MB, free: 14.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.3029, allocations: 16.03 kB / 440 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004496/0.3034, allocations: 182.9 kB / 440.2 MB, free: 14.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001397/0.3048, allocations: 0.9364 MB / 441.1 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.3049, allocations: 166.9 kB / 441.3 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002153/0.3052, allocations: 144.4 kB / 441.4 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003155/0.3083, allocations: 2.013 MB / 443.4 MB, free: 11.15 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.466e-05/0.3084, allocations: 4 kB / 443.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001593/0.3085, allocations: 60 kB / 443.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/0.3086, allocations: 28 kB / 443.5 MB, free: 11.06 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002935/0.3115, allocations: 1.946 MB / 445.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01236/0.3239, allocations: 8.216 MB / 453.7 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004681/0.3286, allocations: 4.595 MB / 458.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001951/0.3306, allocations: 1.407 MB / 459.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001784/0.3308, allocations: 45.94 kB / 459.7 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002383/0.3332, allocations: 1.437 MB / 461.1 MB, free: 8.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=201): time 6.271e-06/0.3332, allocations: 3.938 kB / 461.1 MB, free: 8.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=201): time 0.05777/0.391, allocations: 13.24 MB / 474.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.3912, allocations: 180.2 kB / 474.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/0.3925, allocations: 0.8019 MB / 475.4 MB, free: 10 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004943/0.393, allocations: 77.7 kB / 475.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003731/0.3933, allocations: 434.9 kB / 475.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006697/0.394, allocations: 0.6621 MB / 476.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006787/0.3947, allocations: 379.9 kB / 476.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3949, allocations: 365.8 kB / 477.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00189/0.3968, allocations: 1.254 MB / 478.5 MB, free: 6.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002053/0.3988, allocations: 1.434 MB / 479.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004067/0.4029, allocations: 2.803 MB / 482.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.4029, allocations: 0 / 482.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01335/0.4163, allocations: 5.267 MB / 488 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.4163, allocations: 8 kB / 488 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.4164, allocations: 0 / 488 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/0.4305, allocations: 3.829 MB / 491.8 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.432, allocations: 315.6 kB / 492.2 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03024/0.4622, allocations: 15.87 MB / 0.4961 GB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/0.4642, allocations: 193.9 kB / 0.4963 GB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/0.4645, allocations: 75.97 kB / 0.4964 GB, free: 8.777 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,n.y,cmd.pulseStart,$PRE.cmd.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(28,58)} Notification: Performance of prepare postOptimizeDAE: time 0.000806/0.4653, allocations: 378.2 kB / 0.4967 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000305/0.4656, allocations: 138.3 kB / 0.4969 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01305/0.4786, allocations: 5.206 MB / 0.502 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.518e-05/0.4787, allocations: 20 kB / 0.502 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4787, allocations: 4 kB / 0.502 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.261e-05/0.4788, allocations: 7.969 kB / 0.502 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2908/0.7696, allocations: 7.742 MB / 0.5095 GB, free: 90.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.651e-05/0.7697, allocations: 0.75 kB / 0.5095 GB, free: 90.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.7712, allocations: 241.5 kB / 0.5098 GB, free: 90.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01935/0.7906, allocations: 3.285 MB / 0.513 GB, free: 90.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004998/0.7912, allocations: 46.11 kB / 0.513 GB, free: 90.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02502/0.8162, allocations: 15.66 MB / 0.5283 GB, free: 79.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.8163, allocations: 3.938 kB / 0.5283 GB, free: 79.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01202/0.8283, allocations: 5.022 MB / 0.5332 GB, free: 75.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004902/0.8288, allocations: 243.5 kB / 0.5335 GB, free: 75.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004144/0.8293, allocations: 44.34 kB / 0.5335 GB, free: 75.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001609/0.8309, allocations: 121.9 kB / 0.5336 GB, free: 74.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007889/0.8317, allocations: 170.8 kB / 0.5338 GB, free: 74.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002491/0.832, allocations: 67.36 kB / 0.5339 GB, free: 74.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000901/0.8329, allocations: 0.5381 MB / 0.5344 GB, free: 74.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8329, allocations: 0 / 0.5344 GB, free: 74.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002654/0.8356, allocations: 0.7307 MB / 0.5351 GB, free: 73.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,cmd.pulseStart,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(28,58)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004337/0.836, allocations: 176.2 kB / 0.5353 GB, free: 73.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01049/0.8465, allocations: 4.211 MB / 0.5394 GB, free: 69.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/0.8465, allocations: 3.906 kB / 0.5394 GB, free: 69.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005844/0.8524, allocations: 2.62 MB / 0.5419 GB, free: 66.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/0.8538, allocations: 182.5 kB / 0.5421 GB, free: 66.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0051/0.8589, allocations: 3.109 MB / 0.5451 GB, free: 63.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006774/0.8596, allocations: 1.228 MB / 0.5463 GB, free: 61.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007862/0.8604, allocations: 198 kB / 0.5465 GB, free: 61.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.8607, allocations: 119.3 kB / 0.5466 GB, free: 61.65 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8607, allocations: 0 / 0.5466 GB, free: 61.65 MB / 382.1 MB Notification: Performance of Templates: time 0.1025/0.9633, allocations: 53.17 MB / 0.5986 GB, free: 8.68 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.makefile (rm -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.sim & ./PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe 2>&1)