Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.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.MediumNetworks.DoubleNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_DoubleNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MediumNetworks.DoubleNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_DoubleNetwork",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.001533/0.001533, allocations: 106.6 kB / 16.31 MB, free: 6.402 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.001543/0.001543, allocations: 187.7 kB / 17.24 MB, free: 5.918 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.363/1.363, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04549/0.04549, allocations: 8.096 MB / 299.2 MB, free: 6.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.91 kB / 361.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2138, allocations: 51.5 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MediumNetworks.DoubleNetwork): time 0.004941/0.2188, allocations: 5.917 MB / 419.3 MB, free: 19.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003114/0.222, allocations: 2.324 MB / 421.6 MB, free: 17.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007957/0.2228, allocations: 20 kB / 421.6 MB, free: 17.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008317/0.2236, allocations: 317.8 kB / 421.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001561/0.2253, allocations: 0.6133 MB / 422.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002307/0.2276, allocations: 1.434 MB / 424 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00136/0.2289, allocations: 1.287 MB / 425.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005018/0.2295, allocations: 413 kB / 425.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006012/0.2301, allocations: 0.5331 MB / 426.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007681/0.2308, allocations: 0.7002 MB / 426.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002184/0.2311, allocations: 104 kB / 427 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007324/0.2318, allocations: 343.8 kB / 427.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002093/0.232, allocations: 262.9 kB / 427.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006657/0.2327, allocations: 0.6102 MB / 428.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001422/0.2341, allocations: 1.409 MB / 429.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.2342, allocations: 0 / 429.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2342, allocations: 0 / 429.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.595e-05/0.2342, allocations: 0 / 429.6 MB, free: 9.266 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: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.01245/0.2467, allocations: 3.154 MB / 432.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.2467, allocations: 11.89 kB / 432.8 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003026/0.247, allocations: 135.2 kB / 432.9 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003601/0.2474, allocations: 135.4 kB / 433 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009402/0.2484, allocations: 0.6794 MB / 433.7 MB, free: 5.051 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.263e-05/0.2484, allocations: 78.31 kB / 433.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.2486, allocations: 96.38 kB / 433.9 MB, free: 4.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.2502, allocations: 1.342 MB / 435.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.2502, allocations: 4 kB / 435.2 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.2503, allocations: 32 kB / 435.3 MB, free: 3.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.2504, allocations: 20 kB / 435.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.2519, allocations: 1.281 MB / 436.6 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006957/0.2589, allocations: 5.242 MB / 441.8 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003335/0.2623, allocations: 3.112 MB / 444.9 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.2636, allocations: 0.9847 MB / 445.9 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001397/0.2638, allocations: 37.25 kB / 445.9 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.054e-05/0.2639, allocations: 60.05 kB / 446 MB, free: 7.992 MB / 318.1 MB Notification: Performance of pre-optimization done (n=147): time 3.937e-06/0.2639, allocations: 0 / 446 MB, free: 7.992 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.02851/0.2924, allocations: 7.069 MB / 453.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.245e-05/0.2925, allocations: 124.1 kB / 453.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001077/0.2936, allocations: 0.6409 MB / 453.8 MB, free: 88 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002536/0.2939, allocations: 61.7 kB / 453.9 MB, free: 20 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003014/0.2942, allocations: 338.3 kB / 454.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004977/0.2947, allocations: 492.6 kB / 454.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000554/0.2953, allocations: 275.6 kB / 455 MB, free: 14.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.2954, allocations: 353.9 kB / 455.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.2968, allocations: 0.8552 MB / 456.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001669/0.2984, allocations: 0.9807 MB / 457.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003083/0.3015, allocations: 1.932 MB / 459.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.3016, allocations: 0 / 459.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.01077/0.3123, allocations: 3.819 MB / 462.9 MB, free: 6.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.305e-05/0.3124, allocations: 4 kB / 462.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.3124, allocations: 3.984 kB / 462.9 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01199/0.3244, allocations: 3.954 MB / 466.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000967/0.3254, allocations: 231.7 kB / 467.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02451/0.35, allocations: 11.47 MB / 478.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.3513, allocations: 138.4 kB / 478.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001895/0.3515, allocations: 55.98 kB / 478.7 MB, free: 6.984 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 134 * 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 {(32,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0005691/0.3521, allocations: 257.7 kB / 479 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000304/0.3524, allocations: 118.6 kB / 479.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/0.3626, allocations: 3.789 MB / 482.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.749e-05/0.3626, allocations: 16 kB / 482.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3626, allocations: 3.938 kB / 482.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.745e-05/0.3627, allocations: 7.969 kB / 482.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/0.375, allocations: 5.321 MB / 488.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/0.375, allocations: 3.938 kB / 488.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006596/0.3757, allocations: 175.8 kB / 488.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01072/0.3864, allocations: 2.747 MB / 491.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001985/0.3866, allocations: 39.98 kB / 491.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0226/0.4093, allocations: 11.26 MB / 0.4907 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4093, allocations: 0 / 0.4907 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01065/0.42, allocations: 3.663 MB / 0.4943 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003668/0.4204, allocations: 203.3 kB / 0.4945 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002817/0.4207, allocations: 35.92 kB / 0.4945 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.4219, allocations: 90 kB / 0.4946 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005703/0.4225, allocations: 126.4 kB / 0.4947 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001687/0.4226, allocations: 51.98 kB / 0.4948 GB, free: 10.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007766/0.4234, allocations: 435 kB / 0.4952 GB, free: 10.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4234, allocations: 0 / 0.4952 GB, free: 10.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002206/0.4256, allocations: 0.5349 MB / 0.4957 GB, free: 9.844 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 105 * 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 {(32,32)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01453/0.4402, allocations: 4.279 MB / 0.4999 GB, free: 5.539 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01387/0.4541, allocations: 3.22 MB / 0.503 GB, free: 2.305 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.4542, allocations: 8.594 kB / 0.503 GB, free: 2.297 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007494/0.4617, allocations: 2.112 MB / 0.5051 GB, free: 180 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.4627, allocations: 153 kB / 0.5052 GB, free: 28 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1871/0.6498, allocations: 14.51 MB / 0.5194 GB, free: 87.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.6503, allocations: 1.094 MB / 0.5205 GB, free: 86.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005237/0.6508, allocations: 146.9 kB / 0.5206 GB, free: 86.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003982/0.6512, allocations: 404.6 kB / 0.521 GB, free: 86.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.323e-06/0.6512, allocations: 0 / 0.521 GB, free: 86.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07302/0.7242, allocations: 45.47 MB / 0.5654 GB, free: 42.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/12.22, allocations: 7.922 kB / 0.5654 GB, free: 42.86 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork_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_MediumNetworks_DoubleNetwork.fmu > PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe 2>&1)