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.001066/0.001066, allocations: 102.4 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.001055/0.001055, 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.36/1.36, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0453/0.0453, allocations: 8.091 MB / 299.2 MB, free: 6.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.88 kB / 361.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2246, allocations: 51.51 MB / 413.4 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.007096/0.2318, allocations: 8.841 MB / 422.2 MB, free: 16.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003866/0.2356, allocations: 2.336 MB / 424.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00109/0.2368, allocations: 28 kB / 424.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008793/0.2377, allocations: 417.1 kB / 425 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001658/0.2394, allocations: 0.8346 MB / 425.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002503/0.2419, allocations: 1.578 MB / 427.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002358/0.2443, allocations: 1.879 MB / 429.3 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007587/0.245, allocations: 0.6921 MB / 430 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006968/0.2457, allocations: 0.7823 MB / 430.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008146/0.2466, allocations: 0.9844 MB / 431.7 MB, free: 7.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001966/0.2468, allocations: 188 kB / 431.9 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007517/0.2475, allocations: 435.7 kB / 432.3 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000246/0.2478, allocations: 402.6 kB / 432.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006824/0.2485, allocations: 0.9098 MB / 433.6 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001806/0.2503, allocations: 2.282 MB / 435.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.2503, allocations: 0 / 435.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2503, allocations: 0 / 435.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.257e-05/0.2504, allocations: 4 kB / 435.9 MB, free: 2.898 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.01628/0.2666, allocations: 4.141 MB / 440.1 MB, free: 14.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.2667, allocations: 15.89 kB / 440.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000242/0.2669, allocations: 181.7 kB / 440.2 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003737/0.2673, allocations: 186.9 kB / 440.4 MB, free: 14.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00131/0.2686, allocations: 0.9363 MB / 441.4 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.2688, allocations: 170.8 kB / 441.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000216/0.269, allocations: 140.4 kB / 441.7 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003029/0.2721, allocations: 2.021 MB / 443.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.2721, allocations: 3.938 kB / 443.7 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001606/0.2723, allocations: 56 kB / 443.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.429e-05/0.2723, allocations: 28 kB / 443.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002821/0.2751, allocations: 1.946 MB / 445.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01004/0.2852, allocations: 8.228 MB / 454 MB, free: 0 / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004243/0.2894, allocations: 4.587 MB / 458.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00183/0.2913, allocations: 1.4 MB / 459.9 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000179/0.2915, allocations: 53.88 kB / 460 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002203/0.2937, allocations: 1.437 MB / 461.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=201): time 4.448e-06/0.2937, allocations: 0 / 461.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=201): time 0.05787/0.3516, allocations: 13.24 MB / 474.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.3518, allocations: 176.2 kB / 474.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.3529, allocations: 0.8097 MB / 475.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004066/0.3534, allocations: 81.7 kB / 475.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003894/0.3538, allocations: 438.9 kB / 476.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006162/0.3544, allocations: 0.6582 MB / 476.8 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006615/0.3551, allocations: 383.9 kB / 477.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3552, allocations: 357.9 kB / 477.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001884/0.3571, allocations: 1.254 MB / 478.8 MB, free: 6.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002133/0.3592, allocations: 1.434 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004193/0.3634, allocations: 2.807 MB / 483 MB, free: 2.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.3635, allocations: 0 / 483 MB, free: 2.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01347/0.3769, allocations: 5.256 MB / 488.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.377, allocations: 10.17 kB / 488.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.377, allocations: 48 / 488.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01413/0.3911, allocations: 3.84 MB / 492.1 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.3925, allocations: 315.5 kB / 492.4 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02887/0.4214, allocations: 15.88 MB / 0.4964 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.4232, allocations: 193.9 kB / 0.4966 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001841/0.4234, allocations: 75.97 kB / 0.4967 GB, free: 8.57 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.0007023/0.4241, allocations: 373.5 kB / 0.497 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002928/0.4244, allocations: 138.3 kB / 0.4972 GB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01427/0.4386, allocations: 5.206 MB / 0.5022 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/0.4387, allocations: 20 kB / 0.5023 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4387, allocations: 0 / 0.5023 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.073e-05/0.4388, allocations: 15.95 kB / 0.5023 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2011/0.6398, allocations: 7.738 MB / 0.5098 GB, free: 89.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/0.6399, allocations: 7.719 kB / 0.5098 GB, free: 89.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008616/0.6408, allocations: 238.5 kB / 0.5101 GB, free: 89.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01326/0.654, allocations: 3.292 MB / 0.5133 GB, free: 89.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004225/0.6545, allocations: 41.78 kB / 0.5133 GB, free: 89.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02471/0.6792, allocations: 15.66 MB / 0.5286 GB, free: 79.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.6793, allocations: 0 / 0.5286 GB, free: 79.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01158/0.6908, allocations: 5.026 MB / 0.5335 GB, free: 74.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003541/0.6912, allocations: 254.1 kB / 0.5338 GB, free: 74.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002368/0.6915, allocations: 39.94 kB / 0.5338 GB, free: 74.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.6929, allocations: 114.6 kB / 0.5339 GB, free: 74.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006753/0.6935, allocations: 170.8 kB / 0.5341 GB, free: 74.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/0.6937, allocations: 67.98 kB / 0.5341 GB, free: 74.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000652/0.6943, allocations: 0.5381 MB / 0.5347 GB, free: 73.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6943, allocations: 0 / 0.5347 GB, free: 73.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001889/0.6962, allocations: 0.7325 MB / 0.5354 GB, free: 72.79 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.01181/0.7081, allocations: 5.645 MB / 0.5409 GB, free: 67.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01061/0.7187, allocations: 4.214 MB / 0.545 GB, free: 62.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/0.7188, allocations: 1.281 kB / 0.545 GB, free: 62.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005723/0.7245, allocations: 2.612 MB / 0.5476 GB, free: 60.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.7257, allocations: 196.3 kB / 0.5477 GB, free: 60.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03559/0.7613, allocations: 19.84 MB / 0.5671 GB, free: 39.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005737/0.7619, allocations: 1.231 MB / 0.5683 GB, free: 38.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008449/0.7627, allocations: 205.5 kB / 0.5685 GB, free: 38.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005762/0.7633, allocations: 0.5461 MB / 0.5691 GB, free: 37.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.7633, allocations: 0 / 0.5691 GB, free: 37.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09303/0.8564, allocations: 65.08 MB / 0.6326 GB, free: 4.965 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.87, allocations: 4.062 kB / 0.6326 GB, free: 4.961 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 & 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)