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-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001138/0.001138, allocations: 103 kB / 16.98 MB, free: 6.18 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.001186/0.001186, allocations: 187.3 kB / 17.91 MB, free: 5.281 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.387/1.387, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0497/0.0497, allocations: 8.103 MB / 299.9 MB, free: 6.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 67.83 kB / 362.4 MB, free: 8.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2126, allocations: 51.51 MB / 413.9 MB, free: 25.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.007014/0.2197, allocations: 8.841 MB / 422.8 MB, free: 16.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003979/0.2237, allocations: 2.332 MB / 425.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008665/0.2246, allocations: 24 kB / 425.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007887/0.2254, allocations: 413.2 kB / 425.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001695/0.2272, allocations: 0.8385 MB / 426.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002458/0.2296, allocations: 1.589 MB / 428 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001596/0.2312, allocations: 1.875 MB / 429.8 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006762/0.2319, allocations: 0.696 MB / 430.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006295/0.2326, allocations: 0.7784 MB / 431.3 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008079/0.2334, allocations: 0.9883 MB / 432.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002064/0.2336, allocations: 188 kB / 432.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006776/0.2343, allocations: 427.8 kB / 432.9 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002153/0.2345, allocations: 410.6 kB / 433.3 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006449/0.2351, allocations: 0.9098 MB / 434.2 MB, free: 5.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001599/0.2368, allocations: 2.274 MB / 436.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2368, allocations: 0 / 436.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2368, allocations: 0 / 436.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.23e-05/0.2368, allocations: 0 / 436.5 MB, free: 2.953 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.01655/0.2534, allocations: 4.156 MB / 440.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.2534, allocations: 11.97 kB / 440.6 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004016/0.2538, allocations: 186.9 kB / 440.8 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001341/0.2552, allocations: 0.9324 MB / 441.8 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.2553, allocations: 170.9 kB / 441.9 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002194/0.2556, allocations: 136.4 kB / 442.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00313/0.2587, allocations: 2.017 MB / 444.1 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.2588, allocations: 7.938 kB / 444.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001696/0.2589, allocations: 56 kB / 444.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.447e-05/0.259, allocations: 28 kB / 444.2 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002908/0.2619, allocations: 1.946 MB / 446.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0109/0.2728, allocations: 8.22 MB / 454.3 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004465/0.2773, allocations: 4.595 MB / 458.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001953/0.2793, allocations: 1.403 MB / 460.3 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001879/0.2795, allocations: 49.94 kB / 460.4 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002259/0.2818, allocations: 1.437 MB / 461.8 MB, free: 8.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=201): time 4.298e-06/0.2818, allocations: 0 / 461.8 MB, free: 8.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=201): time 0.06045/0.3422, allocations: 13.23 MB / 475 MB, free: 11.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.3424, allocations: 176.2 kB / 475.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/0.3437, allocations: 0.8136 MB / 476 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004838/0.3442, allocations: 73.7 kB / 476.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000439/0.3447, allocations: 438.9 kB / 476.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008651/0.3456, allocations: 0.6582 MB / 477.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001089/0.3467, allocations: 379.9 kB / 477.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3468, allocations: 361.9 kB / 477.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00212/0.349, allocations: 1.258 MB / 479.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002243/0.3512, allocations: 1.43 MB / 480.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004479/0.3557, allocations: 2.807 MB / 483.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.3558, allocations: 4 kB / 483.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01432/0.3701, allocations: 5.259 MB / 488.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.3702, allocations: 10.34 kB / 488.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.3702, allocations: 0 / 488.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01443/0.3846, allocations: 3.833 MB / 492.5 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.3861, allocations: 315.6 kB / 492.8 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0314/0.4175, allocations: 15.88 MB / 0.4968 GB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/0.4194, allocations: 197.9 kB / 0.497 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003748/0.4198, allocations: 75.97 kB / 0.497 GB, free: 8.812 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.0009143/0.4207, allocations: 366.2 kB / 0.4974 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004605/0.4211, allocations: 146.3 kB / 0.4975 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01432/0.4355, allocations: 5.206 MB / 0.5026 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.496e-05/0.4355, allocations: 20 kB / 0.5026 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4356, allocations: 0 / 0.5026 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.912e-05/0.4356, allocations: 15.94 kB / 0.5026 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1932/0.6288, allocations: 7.741 MB / 0.5102 GB, free: 90.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.352e-05/0.6289, allocations: 0.6562 kB / 0.5102 GB, free: 90.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009697/0.6299, allocations: 234 kB / 0.5104 GB, free: 90.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01389/0.6438, allocations: 3.287 MB / 0.5136 GB, free: 89.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005076/0.6443, allocations: 49.98 kB / 0.5137 GB, free: 89.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0279/0.6722, allocations: 15.66 MB / 0.529 GB, free: 79.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.6723, allocations: 0 / 0.529 GB, free: 79.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01263/0.6849, allocations: 5.021 MB / 0.5339 GB, free: 75.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004249/0.6854, allocations: 243.5 kB / 0.5341 GB, free: 74.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005648/0.686, allocations: 43.84 kB / 0.5342 GB, free: 74.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/0.6877, allocations: 128 kB / 0.5343 GB, free: 74.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008556/0.6886, allocations: 170.8 kB / 0.5344 GB, free: 74.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003156/0.6889, allocations: 63.98 kB / 0.5345 GB, free: 74.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00084/0.6898, allocations: 0.5381 MB / 0.535 GB, free: 73.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6898, allocations: 0 / 0.535 GB, free: 73.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002485/0.6923, allocations: 0.7385 MB / 0.5358 GB, free: 73.16 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.0004735/0.6928, allocations: 171.9 kB / 0.5359 GB, free: 72.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01078/0.7036, allocations: 4.218 MB / 0.54 GB, free: 68.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/0.7036, allocations: 5.281 kB / 0.54 GB, free: 68.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006295/0.7099, allocations: 2.608 MB / 0.5426 GB, free: 66.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.7116, allocations: 190.5 kB / 0.5428 GB, free: 65.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005416/0.717, allocations: 3.146 MB / 0.5458 GB, free: 62.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007412/0.7178, allocations: 1.228 MB / 0.547 GB, free: 61.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004807/0.7183, allocations: 131.4 kB / 0.5472 GB, free: 61.45 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.7183, allocations: 1.5 kB / 0.5472 GB, free: 61.45 MB / 382.1 MB Notification: Performance of Templates: time 0.0378/0.7561, allocations: 32 MB / 0.5784 GB, free: 29.46 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)