Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.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.OneSourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesOneLoad",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.001053/0.001053, allocations: 108.2 kB / 16.45 MB, free: 6.445 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.001058/0.001058, allocations: 188.3 kB / 17.38 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.216/1.216, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04537/0.04537, allocations: 8.095 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 64.14 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08149/0.08269, allocations: 51.51 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesOneLoad): time 0.002437/0.08517, allocations: 1.566 MB / 467.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.08695, allocations: 1.543 MB / 468.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.963e-05/0.08703, allocations: 4 kB / 468.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003238/0.08736, allocations: 127.3 kB / 468.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002487/0.08763, allocations: 115.3 kB / 468.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001443/0.08908, allocations: 0.9099 MB / 469.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002777/0.08937, allocations: 238.8 kB / 470 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.08952, allocations: 80.34 kB / 470.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.111e-05/0.08962, allocations: 103.6 kB / 470.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.0898, allocations: 119.5 kB / 470.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.108e-05/0.08984, allocations: 16 kB / 470.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003112/0.09016, allocations: 211.8 kB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.962e-05/0.09021, allocations: 47.83 kB / 470.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.09031, allocations: 115.4 kB / 470.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004356/0.09076, allocations: 390.9 kB / 471 MB, free: 13.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.09077, allocations: 0 / 471 MB, free: 13.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09077, allocations: 0 / 471 MB, free: 13.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.09078, allocations: 0 / 471 MB, free: 13.08 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00218/0.09297, allocations: 0.8221 MB / 471.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.09301, allocations: 11.89 kB / 471.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.364e-05/0.09307, allocations: 54.73 kB / 471.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.548e-05/0.09313, allocations: 28.73 kB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002601/0.0934, allocations: 260 kB / 472.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.09342, allocations: 12.7 kB / 472.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.09346, allocations: 20.38 kB / 472.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.09385, allocations: 260 kB / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.09387, allocations: 7.938 kB / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.0939, allocations: 8 kB / 472.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.09391, allocations: 4 kB / 472.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.09425, allocations: 243.9 kB / 472.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.09556, allocations: 1.118 MB / 473.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006025/0.09617, allocations: 318.3 kB / 474.2 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.09638, allocations: 153.3 kB / 474.3 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.471e-05/0.09644, allocations: 19.91 kB / 474.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.09647, allocations: 34.56 kB / 474.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.313e-06/0.09648, allocations: 0 / 474.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.002963/0.09944, allocations: 0.9758 MB / 475.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.0995, allocations: 59.34 kB / 475.4 MB, free: 8.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.0997, allocations: 194.4 kB / 475.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.09974, allocations: 33.7 kB / 475.6 MB, free: 8.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.036e-05/0.09983, allocations: 124.6 kB / 475.8 MB, free: 8.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.376e-05/0.0999, allocations: 91.2 kB / 475.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.1, allocations: 65.64 kB / 475.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1001, allocations: 330.8 kB / 476.2 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.1004, allocations: 156 kB / 476.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.1006, allocations: 161 kB / 476.6 MB, free: 7.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004584/0.101, allocations: 346.4 kB / 476.9 MB, free: 6.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.101, allocations: 4 kB / 476.9 MB, free: 6.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001401/0.1025, allocations: 0.6459 MB / 477.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.1025, allocations: 6.344 kB / 477.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.1025, allocations: 0 / 477.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001318/0.1038, allocations: 324.5 kB / 477.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.104, allocations: 47.92 kB / 477.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003813/0.1078, allocations: 2.762 MB / 480.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.108, allocations: 23.84 kB / 480.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.108, allocations: 12 kB / 480.7 MB, free: 2.93 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 (27): * Single equations (assignments): 26 * 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 {(6,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001264/0.1082, allocations: 129.8 kB / 480.8 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.466e-05/0.1082, allocations: 23.86 kB / 480.9 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/0.1097, allocations: 0.6208 MB / 481.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1097, allocations: 4 kB / 481.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.1097, allocations: 7.938 kB / 481.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1097, allocations: 0 / 481.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003692/0.1101, allocations: 385.3 kB / 481.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1101, allocations: 0 / 481.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.1102, allocations: 32.2 kB / 481.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.1115, allocations: 312.5 kB / 482.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.1115, allocations: 11.94 kB / 482.2 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003545/0.1151, allocations: 2.735 MB / 484.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1151, allocations: 0 / 484.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/0.1164, allocations: 0.6761 MB / 485.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.968e-05/0.1165, allocations: 92.95 kB / 485.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/0.1165, allocations: 8 kB / 485.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.1167, allocations: 15.98 kB / 485.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.075e-05/0.1168, allocations: 23.97 kB / 485.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.1168, allocations: 4.125 kB / 485.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001324/0.117, allocations: 143.2 kB / 485.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.117, allocations: 288 / 485.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003857/0.1174, allocations: 99.95 kB / 486 MB, free: 13.38 MB / 366.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 (20): * Single equations (assignments): 19 * 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 {(6,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001681/0.119, allocations: 1.236 MB / 487.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.1204, allocations: 0.6233 MB / 487.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.1204, allocations: 0 / 487.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009272/0.1213, allocations: 442.3 kB / 488.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.1216, allocations: 27.73 kB / 488.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004918/0.1266, allocations: 3.259 MB / 491.6 MB, free: 7.672 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/0.1269, allocations: 0.7446 MB / 492.3 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.829e-05/0.127, allocations: 37.92 kB / 492.4 MB, free: 6.859 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.629e-05/0.1271, allocations: 63.41 kB / 492.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1271, allocations: 4 kB / 492.4 MB, free: 6.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.1558, allocations: 8.391 MB / 0.4891 GB, free: 14.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/10.86, allocations: 14.34 kB / 0.4891 GB, free: 14.51 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad_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_OneSourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe 2>&1)