Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.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.ExampleWithFMUs.MVLVNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVLVNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVLVNetwork",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.00112/0.00112, allocations: 108.3 kB / 16.45 MB, free: 6.449 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.00118/0.00118, allocations: 189 kB / 17.39 MB, free: 5.668 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.254/1.254, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04483/0.04483, allocations: 8.102 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 68.09 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07734/0.07846, allocations: 51.51 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork): time 0.003794/0.08229, allocations: 3.352 MB / 468.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002327/0.08463, allocations: 1.851 MB / 470.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.08479, allocations: 16 kB / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004192/0.08523, allocations: 202.7 kB / 470.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005896/0.08583, allocations: 321.9 kB / 471.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002052/0.08789, allocations: 1.287 MB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006459/0.08854, allocations: 0.657 MB / 473.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002923/0.08884, allocations: 230.8 kB / 473.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002247/0.08908, allocations: 278.9 kB / 473.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003644/0.08945, allocations: 346.6 kB / 474 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.856e-05/0.08953, allocations: 52 kB / 474.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004621/0.09, allocations: 283.7 kB / 474.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.09012, allocations: 135.5 kB / 474.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.09039, allocations: 318.3 kB / 474.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008345/0.09123, allocations: 0.8172 MB / 475.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.09125, allocations: 0 / 475.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.09125, allocations: 0 / 475.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.335e-06/0.09127, allocations: 0 / 475.6 MB, free: 8.52 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.006522/0.09779, allocations: 1.898 MB / 477.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.09785, allocations: 19.89 kB / 477.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.98e-05/0.09796, allocations: 82.72 kB / 477.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.0981, allocations: 68.56 kB / 477.7 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005533/0.09866, allocations: 434.2 kB / 478.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.0987, allocations: 41.38 kB / 478.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.345e-05/0.0988, allocations: 56.31 kB / 478.2 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.09984, allocations: 0.7181 MB / 478.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.09986, allocations: 3.938 kB / 478.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.281e-05/0.09992, allocations: 20 kB / 478.9 MB, free: 5.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.09994, allocations: 12 kB / 478.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008906/0.1008, allocations: 0.6599 MB / 479.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003234/0.1041, allocations: 2.841 MB / 482.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.1054, allocations: 1.086 MB / 483.5 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006007/0.106, allocations: 498.6 kB / 484 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-05/0.1061, allocations: 24.62 kB / 484 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.1061, allocations: 47.2 kB / 484.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.274e-06/0.1061, allocations: 0 / 484.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.01056/0.1167, allocations: 3.21 MB / 487.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.168e-05/0.1168, allocations: 111.5 kB / 487.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000393/0.1172, allocations: 381.5 kB / 487.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.976e-05/0.1173, allocations: 45.7 kB / 487.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.1174, allocations: 217.5 kB / 488 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.1176, allocations: 257.7 kB / 488.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/0.1178, allocations: 158.6 kB / 488.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.118, allocations: 366.8 kB / 488.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006422/0.1186, allocations: 461.8 kB / 489.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007472/0.1194, allocations: 0.5248 MB / 489.8 MB, free: 9.781 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.1208, allocations: 1.017 MB / 490.8 MB, free: 8.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.1208, allocations: 0 / 490.8 MB, free: 8.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.004669/0.1255, allocations: 2.023 MB / 492.8 MB, free: 6.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.1255, allocations: 10.28 kB / 492.8 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1255, allocations: 3.938 kB / 492.8 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005086/0.1306, allocations: 1.527 MB / 494.4 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004815/0.1311, allocations: 123.9 kB / 494.5 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.1416, allocations: 6.29 MB / 0.489 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000644/0.1422, allocations: 79.53 kB / 0.4891 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.979e-05/0.1423, allocations: 31.98 kB / 0.4891 GB, free: 14.53 MB / 382.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 (75): * Single equations (assignments): 74 * 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 {(16,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002793/0.1426, allocations: 193.7 kB / 0.4893 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.1427, allocations: 59.62 kB / 0.4894 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004829/0.1476, allocations: 1.987 MB / 0.4913 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.1476, allocations: 8 kB / 0.4913 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.1476, allocations: 0 / 0.4913 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.485e-06/0.1476, allocations: 3.984 kB / 0.4913 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005475/0.1531, allocations: 2.827 MB / 0.4941 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.1531, allocations: 0 / 0.4941 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003109/0.1534, allocations: 99.83 kB / 0.4942 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004852/0.1583, allocations: 1.289 MB / 0.4954 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.887e-05/0.1584, allocations: 16 kB / 0.4955 GB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01012/0.1685, allocations: 6.222 MB / 0.5015 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.1685, allocations: 0 / 0.5015 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1723/0.3408, allocations: 1.941 MB / 0.5034 GB, free: 44.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001755/0.341, allocations: 141.5 kB / 0.5036 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.3411, allocations: 15.06 kB / 0.5036 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005289/0.3417, allocations: 43.17 kB / 0.5036 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/0.3419, allocations: 68.78 kB / 0.5037 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.724e-05/0.342, allocations: 25.36 kB / 0.5037 GB, free: 44.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003451/0.3424, allocations: 261.3 kB / 0.504 GB, free: 44.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3424, allocations: 0 / 0.504 GB, free: 44.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009335/0.3433, allocations: 285.1 kB / 0.5042 GB, free: 44.66 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 (56): * Single equations (assignments): 55 * 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 {(16,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004995/0.3483, allocations: 2.53 MB / 0.5067 GB, free: 43.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0035/0.3518, allocations: 1.684 MB / 0.5083 GB, free: 43.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3519, allocations: 3.312 kB / 0.5084 GB, free: 43.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002491/0.3544, allocations: 1.121 MB / 0.5094 GB, free: 43.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.3549, allocations: 65.75 kB / 0.5095 GB, free: 43.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/0.3688, allocations: 7.749 MB / 0.5171 GB, free: 39.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.3691, allocations: 0.8862 MB / 0.5179 GB, free: 38.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002773/0.3694, allocations: 80.55 kB / 0.518 GB, free: 38.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002177/0.3696, allocations: 199.9 kB / 0.5182 GB, free: 38.81 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3697, allocations: 0 / 0.5182 GB, free: 38.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04393/0.4136, allocations: 23.81 MB / 0.5415 GB, free: 21.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.6, allocations: 14.58 kB / 0.5415 GB, free: 21.76 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork_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_ExampleWithFMUs_MVLVNetwork.fmu > PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.pipe 2>&1)