Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.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.FourVariableLoadsThreeFeeders,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.FourVariableLoadsThreeFeeders,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders",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.001301/0.001301, allocations: 107.3 kB / 16.45 MB, free: 6.453 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.001374/0.001374, allocations: 190.1 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.256/1.256, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0461/0.0461, allocations: 8.09 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001127, allocations: 63.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.09308, allocations: 51.52 MB / 465.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.FourVariableLoadsThreeFeeders): time 0.00598/0.09911, allocations: 4.761 MB / 470.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00449/0.1036, allocations: 3.159 MB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004228/0.1041, allocations: 12 kB / 473.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007151/0.1048, allocations: 274.2 kB / 473.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001225/0.1061, allocations: 0.5436 MB / 474.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002526/0.1086, allocations: 1.49 MB / 475.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001273/0.1099, allocations: 1.121 MB / 476.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004151/0.1103, allocations: 314.7 kB / 477.2 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004088/0.1107, allocations: 454.3 kB / 477.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005742/0.1113, allocations: 0.5486 MB / 478.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.1115, allocations: 92 kB / 478.2 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000736/0.1122, allocations: 415.7 kB / 478.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.1124, allocations: 215.2 kB / 478.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004375/0.1128, allocations: 0.4897 MB / 479.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001407/0.1143, allocations: 1.292 MB / 480.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1143, allocations: 0 / 480.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1143, allocations: 0 / 480.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.1143, allocations: 0 / 480.6 MB, free: 3.426 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.009789/0.1241, allocations: 2.6 MB / 483.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.1242, allocations: 15.89 kB / 483.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000153/0.1243, allocations: 114.7 kB / 483.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002632/0.1246, allocations: 120.3 kB / 483.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008624/0.1255, allocations: 0.578 MB / 484.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001414/0.1256, allocations: 172.4 kB / 484.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/0.1258, allocations: 79.94 kB / 484.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001815/0.1276, allocations: 1.089 MB / 485.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.1276, allocations: 0 / 485.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.533e-05/0.1277, allocations: 28 kB / 485.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.1278, allocations: 16 kB / 485.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.1294, allocations: 0.9851 MB / 486.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005321/0.1347, allocations: 4.045 MB / 490.5 MB, free: 9.102 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.1367, allocations: 1.586 MB / 492.1 MB, free: 7.438 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/0.1377, allocations: 0.7614 MB / 492.8 MB, free: 6.676 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.1379, allocations: 36.95 kB / 492.9 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001544/0.1394, allocations: 0.9994 MB / 493.9 MB, free: 5.605 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 3.798e-06/0.1394, allocations: 0 / 493.9 MB, free: 5.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.02157/0.161, allocations: 5.627 MB / 499.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001445/0.1612, allocations: 252.3 kB / 499.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007707/0.162, allocations: 0.538 MB / 0.4885 GB, free: 15.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001416/0.1621, allocations: 57.7 kB / 0.4886 GB, free: 15.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002214/0.1624, allocations: 290.2 kB / 0.4889 GB, free: 14.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003501/0.1627, allocations: 412.4 kB / 0.4893 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003843/0.1631, allocations: 226.9 kB / 0.4895 GB, free: 14.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.1633, allocations: 394.7 kB / 0.4899 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009768/0.1643, allocations: 0.6509 MB / 0.4905 GB, free: 13.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.1654, allocations: 0.7593 MB / 0.4912 GB, free: 12.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01741/0.1828, allocations: 4.787 MB / 0.4959 GB, free: 7.473 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.1828, allocations: 0 / 0.4959 GB, free: 7.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004227/0.1871, allocations: 2.211 MB / 0.4981 GB, free: 5.242 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.245e-05/0.1872, allocations: 48.03 kB / 0.4981 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1872, allocations: 0 / 0.4981 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00871/0.1959, allocations: 2.375 MB / 0.5004 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007093/0.1966, allocations: 159.7 kB / 0.5006 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004396/0.201, allocations: 2.254 MB / 0.5028 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.2023, allocations: 147.3 kB / 0.5029 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/0.2024, allocations: 47.98 kB / 0.503 GB, free: 180 kB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: HVMV.tapChanger.tap:DISCRETE(start = HVMV.tapChanger.startTap fixed = true ) "Current tap position" type: Integer HVMV.tapChanger.furtherTapChangeTimeout:DISCRETE(start = HVMV.tapChanger.nextTapChangeTimeout unit = "s" fixed = true protected = true ) "Time lag between the first change and the following tap" type: Real HVMV.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 25 ($PRE.HVMV.tapChanger.tap,$PRE.HVMV.tapChanger.furtherTapChangeTimeout,$PRE.HVMV.tapChanger.abnormalUTime,varLoad4.degradedMode,$PRE.varLoad4.degradedMode,varLoad3.degradedMode,$PRE.varLoad3.degradedMode,varLoad2.degradedMode,$PRE.varLoad2.degradedMode,varLoad1.degradedMode,$PRE.varLoad1.degradedMode,HVMV.tapChanger.furtherTapChangeTimeout,HVMV.tapChanger.increaseEvent,HVMV.tapChanger.decreaseEvent,HVMV.tapChanger.normalU,HVMV.tapChanger.abnormalUTime,HVMV.tapChanger.tap,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 106 * 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 {(20,30)} Notification: Performance of prepare postOptimizeDAE: time 0.1879/0.3904, allocations: 296.3 kB / 0.5033 GB, free: 46.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002885/0.3907, allocations: 93.52 kB / 0.5034 GB, free: 46.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003998/0.3947, allocations: 2.414 MB / 0.5057 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.3947, allocations: 13.56 kB / 0.5057 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3947, allocations: 0 / 0.5057 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.3948, allocations: 7.234 kB / 0.5057 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00591/0.4007, allocations: 4.193 MB / 0.5098 GB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.4007, allocations: 1.906 kB / 0.5098 GB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003905/0.4011, allocations: 118.9 kB / 0.5099 GB, free: 44.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00832/0.4094, allocations: 2.127 MB / 0.512 GB, free: 44.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001338/0.4096, allocations: 30.12 kB / 0.512 GB, free: 44.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004498/0.4141, allocations: 2.395 MB / 0.5144 GB, free: 42.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4141, allocations: 4.047 kB / 0.5144 GB, free: 42.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004269/0.4184, allocations: 2.435 MB / 0.5168 GB, free: 41.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005003/0.4189, allocations: 341.8 kB / 0.5171 GB, free: 41.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.4191, allocations: 37.36 kB / 0.5171 GB, free: 41.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009558/0.42, allocations: 109.4 kB / 0.5172 GB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/0.4203, allocations: 90.47 kB / 0.5173 GB, free: 41.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.4204, allocations: 46.8 kB / 0.5174 GB, free: 41.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005084/0.4209, allocations: 381.5 kB / 0.5177 GB, free: 41.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4209, allocations: 3.938 kB / 0.5177 GB, free: 41.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007895/0.4217, allocations: 329.1 kB / 0.518 GB, free: 40.99 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: 18 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,HVMV.tapChanger.tap,HVMV.tapChanger.abnormalUTime,HVMV.tapChanger.normalU,HVMV.tapChanger.decreaseEvent,HVMV.tapChanger.increaseEvent,HVMV.tapChanger.furtherTapChangeTimeout,varLoad1.degradedMode,varLoad2.degradedMode,varLoad3.degradedMode,varLoad4.degradedMode) * Number of discrete states: 14 (HVMV.tapChanger.tap,HVMV.tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,HVMV.tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,HVMV.tapChanger.decreaseEvent,HVMV.tapChanger.increaseEvent,HVMV.tapChanger.normalU,varLoad2.degradedMode,varLoad3.degradedMode,varLoad4.degradedMode,varLoad1.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 {(20,33)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004623/0.4263, allocations: 3.371 MB / 0.5213 GB, free: 39.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004507/0.4308, allocations: 2.098 MB / 0.5234 GB, free: 38.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.4309, allocations: 7.688 kB / 0.5234 GB, free: 38.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003066/0.4339, allocations: 1.379 MB / 0.5247 GB, free: 37.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006908/0.4346, allocations: 121.7 kB / 0.5249 GB, free: 37.62 MB / 382.1 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/0.4473, allocations: 10.07 MB / 0.5347 GB, free: 29.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.4476, allocations: 0.9742 MB / 0.5356 GB, free: 28.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003483/0.4479, allocations: 114.1 kB / 0.5357 GB, free: 27.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003148/0.4482, allocations: 315.3 kB / 0.536 GB, free: 27.66 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4482, allocations: 0 / 0.536 GB, free: 27.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1447/0.593, allocations: 29.36 MB / 0.5647 GB, free: 14.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.36, allocations: 10.83 kB / 0.5647 GB, free: 14.47 MB / 398.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders_res.csv --start-time 0 --stop-time 3.15324e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12613 PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders.fmu > PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.pipe 2>&1)