Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.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.Network,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MediumNetworks.Network,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network",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.001114/0.001114, allocations: 103.1 kB / 16.31 MB, free: 5.879 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.001145/0.001145, allocations: 192.3 kB / 17.24 MB, free: 5.539 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.331/1.331, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05284/0.05284, allocations: 8.087 MB / 299.2 MB, free: 6.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 63.91 kB / 361.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2241, allocations: 51.51 MB / 413.4 MB, free: 25.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MediumNetworks.Network): time 0.005512/0.2297, allocations: 3.847 MB / 417.2 MB, free: 21.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003517/0.2332, allocations: 1.962 MB / 419.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000433/0.2337, allocations: 12 kB / 419.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007642/0.2345, allocations: 222.6 kB / 419.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.2357, allocations: 389.5 kB / 419.8 MB, free: 19.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003065/0.2388, allocations: 1.309 MB / 421.1 MB, free: 17.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001068/0.2399, allocations: 0.7814 MB / 421.9 MB, free: 17.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004457/0.2403, allocations: 253.5 kB / 422.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003443/0.2407, allocations: 326.8 kB / 422.4 MB, free: 16.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005409/0.2412, allocations: 430.2 kB / 422.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.2414, allocations: 64 kB / 422.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007773/0.2422, allocations: 307.7 kB / 423.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.2423, allocations: 151.5 kB / 423.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.2426, allocations: 382 kB / 423.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.2437, allocations: 0.9267 MB / 424.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2437, allocations: 3.984 kB / 424.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2438, allocations: 0 / 424.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.2438, allocations: 0 / 424.7 MB, free: 14.23 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.01148/0.2553, allocations: 2.132 MB / 426.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.2553, allocations: 11.89 kB / 426.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.2555, allocations: 94.7 kB / 426.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002551/0.2558, allocations: 80.09 kB / 427 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008048/0.2566, allocations: 485.7 kB / 427.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.344e-05/0.2566, allocations: 49.38 kB / 427.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.2568, allocations: 60.38 kB / 427.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.2582, allocations: 0.8417 MB / 428.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.2582, allocations: 3.938 kB / 428.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.2583, allocations: 24 kB / 428.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.2584, allocations: 12 kB / 428.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.2599, allocations: 0.777 MB / 429.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004917/0.2649, allocations: 3.338 MB / 432.6 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/0.2669, allocations: 1.36 MB / 433.9 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009672/0.2678, allocations: 0.5934 MB / 434.5 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/0.268, allocations: 20.97 kB / 434.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.268, allocations: 43.56 kB / 434.6 MB, free: 3.801 MB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 3.417e-06/0.268, allocations: 0 / 434.6 MB, free: 3.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.02067/0.2887, allocations: 3.966 MB / 438.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.2888, allocations: 123.7 kB / 438.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008299/0.2897, allocations: 437.6 kB / 439.1 MB, free: 15.22 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001781/0.2899, allocations: 49.7 kB / 439.1 MB, free: 15.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.2901, allocations: 229.5 kB / 439.4 MB, free: 14.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003582/0.2905, allocations: 299.5 kB / 439.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004746/0.291, allocations: 178.6 kB / 439.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.2912, allocations: 374.8 kB / 440.2 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.2925, allocations: 0.533 MB / 440.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.294, allocations: 0.6224 MB / 441.3 MB, free: 12.92 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002932/0.2969, allocations: 1.201 MB / 442.5 MB, free: 11.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.297, allocations: 0 / 442.5 MB, free: 11.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.009496/0.3065, allocations: 2.386 MB / 444.9 MB, free: 9.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.3066, allocations: 4 kB / 444.9 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.3066, allocations: 4 kB / 444.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008818/0.3154, allocations: 1.776 MB / 446.7 MB, free: 7.531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007256/0.3162, allocations: 147.8 kB / 446.9 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01462/0.3308, allocations: 7.374 MB / 454.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007897/0.3316, allocations: 87.2 kB / 454.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.564e-05/0.3317, allocations: 40 kB / 454.4 MB, free: 15.76 MB / 334.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 (87): * Single equations (assignments): 86 * 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 {(18,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0003346/0.3321, allocations: 205.6 kB / 454.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000175/0.3323, allocations: 71.09 kB / 454.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006301/0.3386, allocations: 2.323 MB / 457 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.3386, allocations: 11.94 kB / 457 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.3386, allocations: 0 / 457 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.715e-05/0.3386, allocations: 7.984 kB / 457 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007111/0.3457, allocations: 3.32 MB / 460.3 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.3458, allocations: 3.938 kB / 460.3 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003727/0.3461, allocations: 107.9 kB / 460.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006348/0.3525, allocations: 1.518 MB / 461.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-05/0.3526, allocations: 19.94 kB / 461.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01341/0.366, allocations: 7.245 MB / 469.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.366, allocations: 3.938 kB / 469.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006154/0.3722, allocations: 2.279 MB / 471.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.3724, allocations: 152 kB / 471.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.3726, allocations: 23.98 kB / 471.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006958/0.3733, allocations: 59.84 kB / 471.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002534/0.3735, allocations: 76.89 kB / 471.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.3737, allocations: 31.98 kB / 471.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004014/0.3741, allocations: 295.1 kB / 472.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3741, allocations: 3.938 kB / 472.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009973/0.3751, allocations: 339.8 kB / 472.4 MB, free: 13.4 MB / 350.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 (66): * Single equations (assignments): 65 * 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 {(18,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006328/0.3814, allocations: 2.867 MB / 475.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005405/0.3869, allocations: 1.997 MB / 477.3 MB, free: 8.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.3869, allocations: 4 kB / 477.3 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003597/0.3905, allocations: 1.291 MB / 478.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008297/0.3914, allocations: 92.44 kB / 478.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01842/0.4098, allocations: 9.17 MB / 487.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004909/0.4103, allocations: 0.9255 MB / 488.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003569/0.4107, allocations: 84.86 kB / 488.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003111/0.411, allocations: 243.3 kB / 489.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of SimCode: time 8.31e-07/0.411, allocations: 0 / 489.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05709/0.4681, allocations: 28.23 MB / 0.5052 GB, free: 456 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.76, allocations: 8.047 kB / 0.5052 GB, free: 448 kB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network_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_Network.fmu > PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe 2>&1)