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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.0008526/0.0008523, allocations: 95.34 kB / 15.73 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000829/0.000829, allocations: 180.7 kB / 16.61 MB, free: 6.887 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.232/1.232, allocations: 223.2 MB / 240.5 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1404/0.1404, allocations: 8.092 MB / 299.7 MB, free: 2.965 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002908/0.0002909, allocations: 11.98 kB / 362.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08374/0.08405, allocations: 52.5 MB / 415.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.FourVariableLoadsThreeFeeders): time 0.003711/0.0878, allocations: 3.748 MB / 419.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003385/0.0912, allocations: 3.008 MB / 422.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001848/0.09139, allocations: 12 kB / 422.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004127/0.09181, allocations: 182.8 kB / 422.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008693/0.09269, allocations: 0.5062 MB / 422.8 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1482/0.2409, allocations: 1.196 MB / 424 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001384/0.2423, allocations: 0.7233 MB / 424.7 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003383/0.2426, allocations: 238.2 kB / 425 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003077/0.243, allocations: 380.3 kB / 425.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004638/0.2434, allocations: 467 kB / 425.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.866e-05/0.2435, allocations: 44.91 kB / 425.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006356/0.2442, allocations: 316 kB / 426.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.2443, allocations: 169.8 kB / 426.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.2445, allocations: 184.2 kB / 426.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007165/0.2452, allocations: 0.8996 MB / 427.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.2452, allocations: 0 / 427.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2452, allocations: 0 / 427.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.2452, allocations: 0 / 427.4 MB, free: 35.32 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.008468/0.2537, allocations: 2.429 MB / 429.8 MB, free: 34.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.2537, allocations: 11.97 kB / 429.8 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001815/0.2539, allocations: 128.7 kB / 429.9 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001827/0.2541, allocations: 104.2 kB / 430.1 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000674/0.2548, allocations: 0.5606 MB / 430.6 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.959e-05/0.2549, allocations: 168.2 kB / 430.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.255, allocations: 75.64 kB / 430.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.2564, allocations: 1.084 MB / 431.9 MB, free: 34.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.2564, allocations: 7.562 kB / 431.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.945e-05/0.2565, allocations: 32.77 kB / 432 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.2565, allocations: 16 kB / 432 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.2579, allocations: 0.9828 MB / 433 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004185/0.2621, allocations: 4.138 MB / 437.1 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.2636, allocations: 1.587 MB / 438.7 MB, free: 31.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.697e-05/0.2637, allocations: 31.41 kB / 438.7 MB, free: 31.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.2649, allocations: 1.006 MB / 439.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=123): time 2.534e-06/0.2649, allocations: 0 / 439.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=123): time 0.01981/0.2847, allocations: 5.574 MB / 445.3 MB, free: 30.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.922e-05/0.2848, allocations: 252.2 kB / 445.6 MB, free: 30.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005365/0.2853, allocations: 0.5337 MB / 446.1 MB, free: 30.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.893e-05/0.2854, allocations: 54.2 kB / 446.1 MB, free: 30.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.2856, allocations: 289.7 kB / 446.4 MB, free: 30.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/0.2858, allocations: 396.1 kB / 446.8 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.002e-05/0.2859, allocations: 26.44 kB / 446.8 MB, free: 29.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.095e-05/0.286, allocations: 394.7 kB / 447.2 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007915/0.2868, allocations: 0.6555 MB / 447.9 MB, free: 29.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008486/0.2876, allocations: 0.7491 MB / 448.6 MB, free: 28.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008582/0.2885, allocations: 0.7299 MB / 449.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2885, allocations: 0 / 449.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002819/0.2913, allocations: 2.16 MB / 451.5 MB, free: 27.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.084e-05/0.2914, allocations: 38.69 kB / 451.6 MB, free: 27.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2914, allocations: 0 / 451.6 MB, free: 27.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008149/0.2995, allocations: 2.391 MB / 453.9 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005921/0.3001, allocations: 158.1 kB / 454.1 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004076/0.3042, allocations: 2.247 MB / 456.3 MB, free: 25.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.3055, allocations: 159.8 kB / 456.5 MB, free: 25.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.3056, allocations: 46.19 kB / 456.5 MB, free: 25.45 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: 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 HVMV.tapChanger.tap:DISCRETE(start = HVMV.tapChanger.startTap fixed = true ) "Current tap position" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.HVMV.tapChanger.tap,HVMV.tapChanger.tap,$PRE.HVMV.tapChanger.abnormalUTime,HVMV.tapChanger.abnormalUTime,HVMV.tapChanger.normalU,HVMV.tapChanger.decreaseEvent,HVMV.tapChanger.increaseEvent,$PRE.HVMV.tapChanger.furtherTapChangeTimeout,HVMV.tapChanger.furtherTapChangeTimeout,$PRE.varLoad1.degradedMode,varLoad1.degradedMode,$PRE.varLoad2.degradedMode,varLoad2.degradedMode,$PRE.varLoad3.degradedMode,varLoad3.degradedMode,$PRE.varLoad4.degradedMode,varLoad4.degradedMode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.000435/0.306, allocations: 296.4 kB / 456.8 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.3062, allocations: 92.41 kB / 456.9 MB, free: 25.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003362/0.3095, allocations: 2.436 MB / 459.4 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.567e-06/0.3096, allocations: 13.34 kB / 459.4 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3096, allocations: 0 / 459.4 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.3096, allocations: 6.562 kB / 459.4 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005642/0.3152, allocations: 4.222 MB / 463.6 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.3153, allocations: 3.281 kB / 463.6 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/0.3157, allocations: 123.5 kB / 463.7 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008212/0.3239, allocations: 2.161 MB / 465.9 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.324, allocations: 34.27 kB / 465.9 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003908/0.3279, allocations: 2.373 MB / 468.3 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.328, allocations: 0 / 468.3 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003753/0.3317, allocations: 2.438 MB / 470.7 MB, free: 18.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004451/0.3322, allocations: 360 kB / 471.1 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001635/0.3323, allocations: 37.23 kB / 471.1 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.3334, allocations: 132.9 kB / 471.3 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.3336, allocations: 99.36 kB / 471.3 MB, free: 18.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.3337, allocations: 48.83 kB / 471.4 MB, free: 18.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004495/0.3342, allocations: 368.1 kB / 471.8 MB, free: 18.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3342, allocations: 4 kB / 471.8 MB, free: 18.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007925/0.335, allocations: 334.5 kB / 472.1 MB, free: 18.17 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 33} Notification: Performance of Backend phase and start with SimCode phase: time 0.004694/0.3397, allocations: 3.345 MB / 475.4 MB, free: 16.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004487/0.3442, allocations: 2.079 MB / 477.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3442, allocations: 6.188 kB / 477.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003303/0.3475, allocations: 1.365 MB / 478.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.348, allocations: 96.47 kB / 479 MB, free: 14.84 MB / 350.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.00353/0.3516, allocations: 2.573 MB / 481.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.3519, allocations: 0.9891 MB / 482.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003856/0.3523, allocations: 121 kB / 482.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000348/0.3527, allocations: 317.3 kB / 483 MB, free: 12.3 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3527, allocations: 0 / 483 MB, free: 12.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1207/0.4734, allocations: 26.08 MB / 0.4971 GB, free: 5.109 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001682/0.4736, allocations: 242.4 kB / 0.4973 GB, free: 4.781 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.189/2.663, allocations: 0 / 0.4973 GB, free: 4.781 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders_fmu --startTime=0 --stopTime=3.15324e+07 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_FourVariableLoadsThreeFeeders.fmu > PowerSysPro_PowerSysPro.Examples.FourVariableLoadsThreeFeeders.pipe 2>&1) Environment - environmentSimulation: