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.001541/0.001542, allocations: 105.5 kB / 16.45 MB, free: 6.441 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.001625/0.001626, allocations: 186.4 kB / 17.38 MB, free: 5.656 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.28/1.28, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04584/0.04584, allocations: 8.099 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 71.88 kB / 414 MB, free: 22.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08373/0.08486, allocations: 51.52 MB / 465.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.008394/0.0933, allocations: 8.846 MB / 474.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004115/0.09745, allocations: 2.336 MB / 476.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005818/0.09805, allocations: 24 kB / 476.7 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007754/0.09883, allocations: 413.2 kB / 477.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001541/0.1004, allocations: 0.8307 MB / 478 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00276/0.1032, allocations: 1.603 MB / 479.6 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0018/0.105, allocations: 1.91 MB / 481.5 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007771/0.1058, allocations: 0.6921 MB / 482.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007221/0.1065, allocations: 0.7862 MB / 482.9 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009962/0.1075, allocations: 0.9805 MB / 483.9 MB, free: 20 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002509/0.1078, allocations: 196 kB / 484.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007123/0.1085, allocations: 431.8 kB / 484.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002977/0.1088, allocations: 410.5 kB / 484.9 MB, free: 15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007458/0.1096, allocations: 0.9099 MB / 485.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002031/0.1116, allocations: 2.304 MB / 488.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1116, allocations: 4 kB / 488.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1116, allocations: 0 / 488.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.574e-05/0.1116, allocations: 0 / 488.2 MB, free: 11.77 MB / 366.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.01527/0.1269, allocations: 4.197 MB / 492.4 MB, free: 7.508 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.127, allocations: 15.89 kB / 492.4 MB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002347/0.1272, allocations: 181.7 kB / 492.6 MB, free: 7.305 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003558/0.1276, allocations: 191.9 kB / 492.7 MB, free: 7.117 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.1289, allocations: 0.9409 MB / 493.7 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.129, allocations: 162.9 kB / 493.8 MB, free: 5.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.1292, allocations: 140.4 kB / 494 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002827/0.1321, allocations: 2.024 MB / 496 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.1321, allocations: 0 / 496 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001472/0.1322, allocations: 56 kB / 496.1 MB, free: 3.703 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.1323, allocations: 32 kB / 496.1 MB, free: 3.672 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002685/0.135, allocations: 1.946 MB / 498 MB, free: 1.719 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009454/0.1444, allocations: 8.194 MB / 0.4944 GB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004272/0.1487, allocations: 4.583 MB / 0.4988 GB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001811/0.1505, allocations: 1.41 MB / 0.5002 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001859/0.1507, allocations: 45.88 kB / 0.5003 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00219/0.1529, allocations: 1.444 MB / 0.5017 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=201): time 3.878e-06/0.153, allocations: 0 / 0.5017 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of matching and sorting (n=201): time 0.2518/0.4047, allocations: 13.24 MB / 0.5146 GB, free: 41.33 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.454e-05/0.4049, allocations: 176.6 kB / 0.5148 GB, free: 41.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.4059, allocations: 0.8149 MB / 0.5156 GB, free: 40.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002265/0.4061, allocations: 75.86 kB / 0.5156 GB, free: 40.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.4064, allocations: 443.1 kB / 0.5161 GB, free: 40.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004221/0.4068, allocations: 0.6981 MB / 0.5167 GB, free: 39.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000608/0.4074, allocations: 380 kB / 0.5171 GB, free: 39.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.842e-05/0.4075, allocations: 357.6 kB / 0.5174 GB, free: 39.24 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001718/0.4092, allocations: 1.257 MB / 0.5187 GB, free: 38.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00174/0.411, allocations: 1.434 MB / 0.5201 GB, free: 37.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003521/0.4145, allocations: 2.808 MB / 0.5228 GB, free: 36.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.4145, allocations: 1.312 kB / 0.5228 GB, free: 36.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01081/0.4253, allocations: 5.265 MB / 0.528 GB, free: 33.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.4254, allocations: 3.969 kB / 0.528 GB, free: 33.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.4254, allocations: 0 / 0.528 GB, free: 33.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01153/0.4369, allocations: 3.804 MB / 0.5317 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.4381, allocations: 327.5 kB / 0.532 GB, free: 30.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02265/0.4607, allocations: 15.87 MB / 0.5475 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.4622, allocations: 203.8 kB / 0.5477 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/0.4624, allocations: 71.97 kB / 0.5477 GB, free: 14.21 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.0006016/0.463, allocations: 373.5 kB / 0.5481 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002236/0.4632, allocations: 143.1 kB / 0.5482 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/0.4742, allocations: 5.208 MB / 0.5533 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.4742, allocations: 24 kB / 0.5533 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.4742, allocations: 0 / 0.5533 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/0.4742, allocations: 15.95 kB / 0.5534 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/0.4869, allocations: 7.732 MB / 0.5609 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.487, allocations: 0 / 0.5609 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007062/0.4877, allocations: 239.6 kB / 0.5611 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01203/0.4997, allocations: 3.259 MB / 0.5643 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001944/0.4999, allocations: 47.98 kB / 0.5644 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02819/0.5281, allocations: 15.66 MB / 0.5797 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5282, allocations: 0 / 0.5797 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01258/0.5408, allocations: 5.034 MB / 0.5846 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003809/0.5412, allocations: 251.5 kB / 0.5848 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000259/0.5414, allocations: 47.94 kB / 0.5849 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.5428, allocations: 118.8 kB / 0.585 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000503/0.5433, allocations: 174.7 kB / 0.5851 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002004/0.5435, allocations: 67.98 kB / 0.5852 GB, free: 7.648 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008163/0.5443, allocations: 0.5419 MB / 0.5857 GB, free: 7.109 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5444, allocations: 0 / 0.5857 GB, free: 7.109 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001955/0.5463, allocations: 0.7418 MB / 0.5865 GB, free: 6.367 MB / 414.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.01249/0.5588, allocations: 5.651 MB / 0.592 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008806/0.5676, allocations: 4.159 MB / 0.596 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.5677, allocations: 5.281 kB / 0.596 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006117/0.5738, allocations: 2.611 MB / 0.5986 GB, free: 9.891 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/0.5752, allocations: 190.7 kB / 0.5988 GB, free: 9.707 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03871/0.614, allocations: 19.1 MB / 0.6174 GB, free: 6.426 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009635/0.615, allocations: 1.226 MB / 0.6186 GB, free: 5.168 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007835/0.6158, allocations: 206 kB / 0.6188 GB, free: 4.965 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007239/0.6165, allocations: 0.55 MB / 0.6194 GB, free: 4.414 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6165, allocations: 3.938 kB / 0.6194 GB, free: 4.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09985/0.7164, allocations: 65.8 MB / 0.6836 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.74, allocations: 11.94 kB / 0.6836 GB, free: 2.906 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe 2>&1)