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: "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 103.2 kB / 16.31 MB, free: 6.391 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.001643/0.001657, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.341/1.341, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04394/0.04394, allocations: 8.084 MB / 299.2 MB, free: 6.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 63.91 kB / 361.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1947, allocations: 51.51 MB / 413.4 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.00623/0.201, allocations: 8.842 MB / 422.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003594/0.2046, allocations: 2.332 MB / 424.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.2057, allocations: 24 kB / 424.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008883/0.2067, allocations: 417.2 kB / 425 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00169/0.2084, allocations: 0.8307 MB / 425.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00229/0.2107, allocations: 1.594 MB / 427.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001403/0.2121, allocations: 1.878 MB / 429.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000607/0.2127, allocations: 0.6921 MB / 430 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004642/0.2132, allocations: 0.7746 MB / 430.7 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00069/0.2139, allocations: 0.9922 MB / 431.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001783/0.2141, allocations: 188 kB / 431.9 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005808/0.2147, allocations: 431.8 kB / 432.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.2149, allocations: 410.5 kB / 432.7 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005036/0.2154, allocations: 0.906 MB / 433.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001303/0.2167, allocations: 2.282 MB / 435.9 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2167, allocations: 0 / 435.9 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2167, allocations: 0 / 435.9 MB, free: 2.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.731e-05/0.2167, allocations: 0 / 435.9 MB, free: 2.918 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.01566/0.2324, allocations: 4.148 MB / 440.1 MB, free: 14.71 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.2325, allocations: 11.89 kB / 440.1 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000301/0.2328, allocations: 189.7 kB / 440.3 MB, free: 14.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000427/0.2332, allocations: 182.9 kB / 440.4 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/0.2347, allocations: 0.9325 MB / 441.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.2348, allocations: 170.8 kB / 441.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002244/0.235, allocations: 144.4 kB / 441.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003094/0.2381, allocations: 2.025 MB / 443.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.2382, allocations: 4 kB / 443.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001604/0.2383, allocations: 52 kB / 443.8 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.836e-05/0.2384, allocations: 28 kB / 443.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002864/0.2413, allocations: 1.95 MB / 445.7 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01055/0.2518, allocations: 8.216 MB / 453.9 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004679/0.2565, allocations: 4.595 MB / 458.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/0.2584, allocations: 1.415 MB / 460 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001786/0.2586, allocations: 41.89 kB / 460 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00225/0.2609, allocations: 1.437 MB / 461.4 MB, free: 8.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=201): time 4.909e-06/0.2609, allocations: 0 / 461.4 MB, free: 8.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=201): time 0.05978/0.3207, allocations: 13.24 MB / 474.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.3209, allocations: 180.2 kB / 474.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.3222, allocations: 0.8058 MB / 475.7 MB, free: 9.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003818/0.3226, allocations: 73.7 kB / 475.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004259/0.3231, allocations: 438.9 kB / 476.2 MB, free: 9.297 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007456/0.3238, allocations: 0.6621 MB / 476.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008485/0.3247, allocations: 379.9 kB / 477.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3249, allocations: 361.9 kB / 477.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002053/0.3269, allocations: 1.258 MB / 478.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002202/0.3291, allocations: 1.434 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004409/0.3335, allocations: 2.799 MB / 483 MB, free: 2.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.3336, allocations: 0 / 483 MB, free: 2.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01371/0.3473, allocations: 5.271 MB / 488.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.3473, allocations: 4 kB / 488.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.3474, allocations: 0 / 488.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01429/0.3617, allocations: 3.836 MB / 492.1 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.3631, allocations: 315.6 kB / 492.4 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03118/0.3943, allocations: 15.88 MB / 0.4964 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001722/0.396, allocations: 193.9 kB / 0.4966 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003296/0.3964, allocations: 79.97 kB / 0.4967 GB, free: 8.574 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.0008785/0.3973, allocations: 369.5 kB / 0.497 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004062/0.3977, allocations: 138.3 kB / 0.4972 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01394/0.4116, allocations: 5.206 MB / 0.5022 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-05/0.4117, allocations: 27.98 kB / 0.5023 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.4117, allocations: 0 / 0.5023 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.826e-05/0.4117, allocations: 7.969 kB / 0.5023 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1819/0.5937, allocations: 7.736 MB / 0.5098 GB, free: 89.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.5937, allocations: 2.469 kB / 0.5098 GB, free: 89.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007305/0.5945, allocations: 242.1 kB / 0.5101 GB, free: 89.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01306/0.6075, allocations: 3.282 MB / 0.5133 GB, free: 89.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002155/0.6078, allocations: 47.61 kB / 0.5133 GB, free: 89.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02395/0.6317, allocations: 15.66 MB / 0.5286 GB, free: 79.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.6318, allocations: 7.203 kB / 0.5286 GB, free: 79.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/0.6432, allocations: 5.025 MB / 0.5335 GB, free: 74.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004371/0.6436, allocations: 248.5 kB / 0.5338 GB, free: 74.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002976/0.6439, allocations: 39.94 kB / 0.5338 GB, free: 74.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/0.6453, allocations: 118.5 kB / 0.5339 GB, free: 74.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005808/0.6459, allocations: 170.8 kB / 0.5341 GB, free: 74.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/0.646, allocations: 71.98 kB / 0.5341 GB, free: 74.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006755/0.6467, allocations: 0.5381 MB / 0.5347 GB, free: 73.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.122e-06/0.6467, allocations: 0 / 0.5347 GB, free: 73.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001659/0.6484, allocations: 0.7329 MB / 0.5354 GB, free: 72.83 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.01148/0.6599, allocations: 5.65 MB / 0.5409 GB, free: 67.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01018/0.6701, allocations: 4.201 MB / 0.545 GB, free: 62.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/0.6701, allocations: 5.344 kB / 0.545 GB, free: 62.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005675/0.6758, allocations: 2.618 MB / 0.5476 GB, free: 60.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.677, allocations: 181.9 kB / 0.5477 GB, free: 60.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03318/0.7102, allocations: 19.85 MB / 0.5671 GB, free: 39.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.7108, allocations: 1.227 MB / 0.5683 GB, free: 38.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007024/0.7115, allocations: 202 kB / 0.5685 GB, free: 38.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005552/0.7121, allocations: 0.55 MB / 0.569 GB, free: 37.81 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.7121, allocations: 4 kB / 0.5691 GB, free: 37.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09265/0.8047, allocations: 65.08 MB / 0.6326 GB, free: 5.023 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.06/13.86, allocations: 3.938 kB / 0.6326 GB, free: 5.02 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe 2>&1)