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.001752/0.001752, allocations: 104.2 kB / 16.45 MB, free: 6.438 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.00162/0.00162, allocations: 189.4 kB / 17.38 MB, free: 5.688 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.41/1.41, 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.05062/0.05062, allocations: 8.099 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001768, allocations: 72.08 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.097, allocations: 51.52 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.FourVariableLoadsThreeFeeders): time 0.006095/0.1031, allocations: 4.768 MB / 470.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004883/0.108, allocations: 3.155 MB / 473.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004316/0.1085, allocations: 12 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000721/0.1093, allocations: 278.2 kB / 473.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.1105, allocations: 0.5319 MB / 474.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002725/0.1132, allocations: 1.505 MB / 475.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001298/0.1146, allocations: 1.109 MB / 476.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004383/0.115, allocations: 314.7 kB / 477.2 MB, free: 6.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004539/0.1155, allocations: 454.3 kB / 477.6 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006588/0.1161, allocations: 0.5446 MB / 478.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.1163, allocations: 95.94 kB / 478.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007429/0.117, allocations: 415.7 kB / 478.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002187/0.1173, allocations: 211.2 kB / 478.9 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004831/0.1178, allocations: 0.4975 MB / 479.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001514/0.1193, allocations: 1.288 MB / 480.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1193, allocations: 0 / 480.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1193, allocations: 0 / 480.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.1193, allocations: 4 kB / 480.7 MB, free: 3.438 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.009676/0.129, allocations: 2.6 MB / 483.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.1291, allocations: 11.89 kB / 483.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001584/0.1292, allocations: 118.7 kB / 483.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002369/0.1295, allocations: 116.3 kB / 483.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008845/0.1304, allocations: 0.5741 MB / 484.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.1305, allocations: 184.4 kB / 484.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.1307, allocations: 75.94 kB / 484.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001855/0.1325, allocations: 1.081 MB / 485.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.1326, allocations: 0 / 485.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.79e-05/0.1327, allocations: 35.98 kB / 485.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.1327, allocations: 12 kB / 485.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.1344, allocations: 0.9851 MB / 486.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005505/0.1399, allocations: 4.049 MB / 490.5 MB, free: 9.113 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/0.142, allocations: 1.596 MB / 492.1 MB, free: 7.438 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00119/0.1432, allocations: 0.76 MB / 492.8 MB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001238/0.1433, allocations: 24.97 kB / 492.9 MB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001659/0.145, allocations: 1.003 MB / 493.9 MB, free: 5.613 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 2.575e-06/0.145, allocations: 0 / 493.9 MB, free: 5.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.02224/0.1672, allocations: 5.627 MB / 499.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001732/0.1675, allocations: 256.3 kB / 499.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007648/0.1682, allocations: 0.5302 MB / 0.4885 GB, free: 15.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.1684, allocations: 61.7 kB / 0.4886 GB, free: 15.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/0.1686, allocations: 298.2 kB / 0.4889 GB, free: 14.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000375/0.169, allocations: 412.4 kB / 0.4893 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004059/0.1694, allocations: 218.9 kB / 0.4895 GB, free: 14.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.1696, allocations: 394.7 kB / 0.4899 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.1707, allocations: 0.6509 MB / 0.4905 GB, free: 13.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/0.1719, allocations: 0.7593 MB / 0.4912 GB, free: 12.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01788/0.1898, allocations: 4.78 MB / 0.4959 GB, free: 7.488 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1898, allocations: 0 / 0.4959 GB, free: 7.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004205/0.1941, allocations: 2.219 MB / 0.4981 GB, free: 5.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.747e-05/0.1941, allocations: 37.69 kB / 0.4981 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.1941, allocations: 0 / 0.4981 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009044/0.2032, allocations: 2.375 MB / 0.5004 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007337/0.204, allocations: 163.7 kB / 0.5006 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00454/0.2085, allocations: 2.258 MB / 0.5028 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.2097, allocations: 147.3 kB / 0.5029 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.2098, allocations: 39.98 kB / 0.503 GB, free: 196 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.1793/0.3891, allocations: 301 kB / 0.5033 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002961/0.3894, allocations: 99.53 kB / 0.5034 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004118/0.3936, allocations: 2.407 MB / 0.5057 GB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.3936, allocations: 12.94 kB / 0.5057 GB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3936, allocations: 0 / 0.5057 GB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.3936, allocations: 7.469 kB / 0.5057 GB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005886/0.3995, allocations: 4.196 MB / 0.5098 GB, free: 44.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.3995, allocations: 1.672 kB / 0.5098 GB, free: 44.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003939/0.3999, allocations: 114.8 kB / 0.5099 GB, free: 44.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008437/0.4084, allocations: 2.132 MB / 0.512 GB, free: 43.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.4085, allocations: 30.03 kB / 0.512 GB, free: 43.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004578/0.4131, allocations: 2.389 MB / 0.5144 GB, free: 42.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4131, allocations: 0 / 0.5144 GB, free: 42.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003964/0.4171, allocations: 2.437 MB / 0.5168 GB, free: 41.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004693/0.4176, allocations: 344.7 kB / 0.5171 GB, free: 41.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.4177, allocations: 37.58 kB / 0.5171 GB, free: 41.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009659/0.4187, allocations: 101.7 kB / 0.5172 GB, free: 41.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002639/0.419, allocations: 96 kB / 0.5173 GB, free: 41.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.4191, allocations: 51.84 kB / 0.5174 GB, free: 41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004863/0.4196, allocations: 381.6 kB / 0.5177 GB, free: 40.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4196, allocations: 0 / 0.5177 GB, free: 40.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008231/0.4204, allocations: 331.5 kB / 0.518 GB, free: 40.78 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.005224/0.4257, allocations: 3.356 MB / 0.5213 GB, free: 38.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004571/0.4302, allocations: 2.105 MB / 0.5234 GB, free: 38.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.4303, allocations: 0.6562 kB / 0.5234 GB, free: 38.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003066/0.4333, allocations: 1.385 MB / 0.5247 GB, free: 37.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007117/0.4341, allocations: 124.5 kB / 0.5248 GB, free: 37.4 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.01287/0.4469, allocations: 10.08 MB / 0.5347 GB, free: 28.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.4473, allocations: 0.9701 MB / 0.5356 GB, free: 27.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003448/0.4476, allocations: 113.8 kB / 0.5357 GB, free: 27.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003181/0.448, allocations: 315.3 kB / 0.536 GB, free: 27.42 MB / 382.1 MB Notification: Performance of SimCode: time 4.4e-07/0.448, allocations: 0 / 0.536 GB, free: 27.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.218/0.666, allocations: 29.36 MB / 0.5647 GB, free: 14.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.52, allocations: 11.66 kB / 0.5647 GB, free: 14.22 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)