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.001333/0.001333, allocations: 107.7 kB / 16.45 MB, free: 6.488 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.001309/0.00131, allocations: 185.5 kB / 17.38 MB, free: 5.711 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.337/1.337, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05004/0.05004, allocations: 8.095 MB / 299.3 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001718, allocations: 64.14 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09041/0.09214, 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.004435/0.09661, allocations: 3.352 MB / 468.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002807/0.09945, allocations: 1.851 MB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.09962, allocations: 11.94 kB / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004462/0.1001, allocations: 202.7 kB / 470.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00063/0.1007, allocations: 329.8 kB / 471.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0023/0.103, allocations: 1.28 MB / 472.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008043/0.1039, allocations: 0.6531 MB / 473.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003204/0.1042, allocations: 226.9 kB / 473.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002865/0.1045, allocations: 274.9 kB / 473.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004435/0.1049, allocations: 354.5 kB / 474 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.287e-05/0.105, allocations: 52 kB / 474.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005346/0.1056, allocations: 291.7 kB / 474.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.1057, allocations: 127.5 kB / 474.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003111/0.106, allocations: 318.3 kB / 474.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009466/0.107, allocations: 0.825 MB / 475.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.107, allocations: 4 kB / 475.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.107, allocations: 0 / 475.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.107, allocations: 0 / 475.6 MB, free: 8.516 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.007187/0.1142, allocations: 1.898 MB / 477.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.1143, allocations: 11.89 kB / 477.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.1144, allocations: 82.72 kB / 477.6 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001506/0.1145, allocations: 68.56 kB / 477.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005893/0.1151, allocations: 434.3 kB / 478.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.1152, allocations: 45.31 kB / 478.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-05/0.1153, allocations: 52.31 kB / 478.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.1164, allocations: 0.7143 MB / 478.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.1164, allocations: 3.938 kB / 478.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.224e-05/0.1165, allocations: 24 kB / 478.9 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.1165, allocations: 8 kB / 478.9 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.1176, allocations: 0.6638 MB / 479.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003908/0.1215, allocations: 2.849 MB / 482.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.1231, allocations: 1.09 MB / 483.5 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007118/0.1238, allocations: 486.8 kB / 484 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.292e-05/0.1239, allocations: 24.53 kB / 484 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.1239, allocations: 43.22 kB / 484.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.104e-06/0.1239, allocations: 0 / 484.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.0118/0.1357, allocations: 3.21 MB / 487.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.601e-05/0.1359, allocations: 115.5 kB / 487.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004821/0.1364, allocations: 381.5 kB / 487.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.649e-05/0.1364, allocations: 41.7 kB / 487.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.1366, allocations: 221.5 kB / 488 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002254/0.1369, allocations: 261.7 kB / 488.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003154/0.1372, allocations: 154.6 kB / 488.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.1374, allocations: 354.8 kB / 488.8 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000702/0.1381, allocations: 469.8 kB / 489.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007663/0.1388, allocations: 0.5209 MB / 489.8 MB, free: 9.793 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/0.1404, allocations: 1.021 MB / 490.8 MB, free: 8.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.1404, allocations: 4 kB / 490.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.005368/0.1458, allocations: 2.023 MB / 492.8 MB, free: 6.734 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.1458, allocations: 4 kB / 492.8 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.1458, allocations: 0 / 492.8 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005717/0.1515, allocations: 1.531 MB / 494.3 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005138/0.1521, allocations: 123.8 kB / 494.5 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/0.1644, allocations: 6.294 MB / 0.489 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007025/0.1651, allocations: 87.53 kB / 0.4891 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.578e-05/0.1652, 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.000309/0.1655, allocations: 189.7 kB / 0.4893 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.1656, allocations: 55.62 kB / 0.4894 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005513/0.1711, allocations: 1.986 MB / 0.4913 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.1712, allocations: 8 kB / 0.4913 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.1712, allocations: 0 / 0.4913 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.1712, allocations: 7.984 kB / 0.4913 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006267/0.1775, allocations: 2.827 MB / 0.4941 GB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1775, allocations: 3.938 kB / 0.4941 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/0.1778, allocations: 95.89 kB / 0.4942 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005419/0.1832, allocations: 1.289 MB / 0.4954 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.067e-05/0.1833, allocations: 27.97 kB / 0.4955 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01159/0.1949, allocations: 6.218 MB / 0.5015 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.195, allocations: 0 / 0.5015 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.179/0.374, allocations: 1.939 MB / 0.5034 GB, free: 44.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.3742, allocations: 140.5 kB / 0.5036 GB, free: 44.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.3743, allocations: 16.75 kB / 0.5036 GB, free: 44.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005572/0.3749, allocations: 48.81 kB / 0.5036 GB, free: 44.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/0.3752, allocations: 63.19 kB / 0.5037 GB, free: 44.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-05/0.3752, allocations: 26.19 kB / 0.5037 GB, free: 44.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000327/0.3756, allocations: 259.7 kB / 0.504 GB, free: 44.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3756, allocations: 0 / 0.504 GB, free: 44.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008393/0.3764, allocations: 286 kB / 0.5042 GB, free: 44.8 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.005185/0.3816, allocations: 2.525 MB / 0.5067 GB, free: 44.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00377/0.3854, allocations: 1.688 MB / 0.5084 GB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.3854, allocations: 1.281 kB / 0.5084 GB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002673/0.3881, allocations: 1.109 MB / 0.5094 GB, free: 43.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000538/0.3886, allocations: 70.36 kB / 0.5095 GB, free: 43.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.4033, allocations: 7.758 MB / 0.5171 GB, free: 39.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.4037, allocations: 0.8813 MB / 0.5179 GB, free: 39.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002799/0.404, allocations: 80.03 kB / 0.518 GB, free: 39.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.4043, allocations: 203.4 kB / 0.5182 GB, free: 38.95 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4043, allocations: 0 / 0.5182 GB, free: 38.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04574/0.45, allocations: 23.81 MB / 0.5415 GB, free: 21.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.51, allocations: 16.05 kB / 0.5415 GB, free: 21.93 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)