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.001287/0.001287, allocations: 100.6 kB / 16.45 MB, free: 6.441 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.001362/0.001362, allocations: 188.9 kB / 17.38 MB, free: 5.691 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.431/1.431, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.06131/0.0613, allocations: 8.098 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 67.89 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1118, allocations: 51.51 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.FourVariableLoadsThreeFeeders): time 0.0071/0.119, allocations: 4.753 MB / 470.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005881/0.1249, allocations: 3.163 MB / 473.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007567/0.1257, allocations: 16 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009607/0.1267, allocations: 278.2 kB / 473.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001759/0.1285, allocations: 0.5358 MB / 474.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003184/0.1317, allocations: 1.498 MB / 475.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001807/0.1335, allocations: 1.121 MB / 476.9 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005636/0.1341, allocations: 310.7 kB / 477.2 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005914/0.1347, allocations: 454.3 kB / 477.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007791/0.1355, allocations: 0.5447 MB / 478.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001628/0.1357, allocations: 92 kB / 478.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001083/0.1368, allocations: 419.7 kB / 478.7 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002565/0.137, allocations: 215.1 kB / 478.9 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005259/0.1376, allocations: 0.4936 MB / 479.4 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001684/0.1392, allocations: 1.288 MB / 480.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1393, allocations: 0 / 480.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.999e-06/0.1393, allocations: 4 kB / 480.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.1393, allocations: 0 / 480.7 MB, free: 3.434 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.0102/0.1495, allocations: 2.592 MB / 483.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.1496, allocations: 15.89 kB / 483.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001567/0.1497, allocations: 114.7 kB / 483.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002437/0.15, allocations: 116.3 kB / 483.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009271/0.1509, allocations: 0.5819 MB / 484.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.1511, allocations: 180.3 kB / 484.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.1512, allocations: 76 kB / 484.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/0.1531, allocations: 1.077 MB / 485.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.1531, allocations: 0 / 485.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-05/0.1533, allocations: 36 kB / 485.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.1533, allocations: 16 kB / 485.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001715/0.155, allocations: 0.9851 MB / 486.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005938/0.161, allocations: 4.045 MB / 490.5 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002223/0.1632, allocations: 1.591 MB / 492.1 MB, free: 7.449 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001211/0.1644, allocations: 0.7614 MB / 492.8 MB, free: 6.688 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001365/0.1646, allocations: 28.95 kB / 492.9 MB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001764/0.1664, allocations: 0.9992 MB / 493.9 MB, free: 5.625 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 3.847e-06/0.1664, allocations: 4 kB / 493.9 MB, free: 5.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.02295/0.1893, allocations: 5.631 MB / 499.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001652/0.1895, allocations: 252.3 kB / 499.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008034/0.1903, allocations: 0.538 MB / 0.4886 GB, free: 15.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001461/0.1905, allocations: 57.7 kB / 0.4886 GB, free: 15.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.1908, allocations: 286.2 kB / 0.4889 GB, free: 14.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000389/0.1912, allocations: 412.5 kB / 0.4893 GB, free: 14.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004175/0.1916, allocations: 218.9 kB / 0.4895 GB, free: 14.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.1918, allocations: 398.8 kB / 0.4899 GB, free: 13.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.1929, allocations: 0.6546 MB / 0.4905 GB, free: 13.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/0.1941, allocations: 0.7632 MB / 0.4912 GB, free: 12.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01836/0.2125, allocations: 4.787 MB / 0.4959 GB, free: 7.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.2125, allocations: 4 kB / 0.4959 GB, free: 7.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004295/0.2168, allocations: 2.211 MB / 0.4981 GB, free: 5.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.855e-05/0.2169, allocations: 41.69 kB / 0.4981 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.2169, allocations: 4 kB / 0.4981 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009283/0.2262, allocations: 2.371 MB / 0.5004 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007259/0.227, allocations: 159.8 kB / 0.5006 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004527/0.2315, allocations: 2.254 MB / 0.5028 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.2327, allocations: 147.3 kB / 0.5029 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.2329, allocations: 47.98 kB / 0.503 GB, free: 192 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.2339/0.4668, allocations: 288 kB / 0.5033 GB, free: 46.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003383/0.4671, allocations: 99.02 kB / 0.5034 GB, free: 46.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004606/0.4717, allocations: 2.414 MB / 0.5057 GB, free: 46.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.702e-05/0.4718, allocations: 12.16 kB / 0.5057 GB, free: 46.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.4718, allocations: 0 / 0.5057 GB, free: 46.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.292e-05/0.4718, allocations: 6.234 kB / 0.5057 GB, free: 46.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007232/0.479, allocations: 4.195 MB / 0.5098 GB, free: 44.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.126e-06/0.4791, allocations: 1.188 kB / 0.5098 GB, free: 44.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004685/0.4796, allocations: 117.7 kB / 0.5099 GB, free: 44.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009055/0.4886, allocations: 2.128 MB / 0.512 GB, free: 43.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002152/0.4889, allocations: 31.03 kB / 0.512 GB, free: 43.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005143/0.494, allocations: 2.386 MB / 0.5144 GB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4941, allocations: 6.25 kB / 0.5144 GB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004336/0.4984, allocations: 2.436 MB / 0.5168 GB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006287/0.4991, allocations: 346.5 kB / 0.5171 GB, free: 41.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001797/0.4992, allocations: 33.42 kB / 0.5171 GB, free: 41.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.5003, allocations: 106.9 kB / 0.5172 GB, free: 41.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/0.5006, allocations: 94.19 kB / 0.5173 GB, free: 41.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.5007, allocations: 48.05 kB / 0.5174 GB, free: 41.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005745/0.5013, allocations: 383.9 kB / 0.5177 GB, free: 40.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5013, allocations: 0 / 0.5177 GB, free: 40.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001052/0.5024, allocations: 331.9 kB / 0.518 GB, free: 40.8 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.005708/0.5081, allocations: 3.354 MB / 0.5213 GB, free: 38.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005088/0.5132, allocations: 2.103 MB / 0.5234 GB, free: 38.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.5132, allocations: 3.172 kB / 0.5234 GB, free: 38.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003424/0.5167, allocations: 1.392 MB / 0.5247 GB, free: 37.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008842/0.5176, allocations: 124.3 kB / 0.5249 GB, free: 37.43 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.01422/0.5318, allocations: 10.07 MB / 0.5347 GB, free: 28.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.5322, allocations: 0.9701 MB / 0.5356 GB, free: 27.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004097/0.5326, allocations: 113.3 kB / 0.5357 GB, free: 27.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003487/0.5329, allocations: 319.3 kB / 0.536 GB, free: 27.42 MB / 382.1 MB Notification: Performance of SimCode: time 5.82e-07/0.5329, allocations: 0 / 0.536 GB, free: 27.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2389/0.7718, allocations: 29.36 MB / 0.5647 GB, free: 14.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.44, allocations: 11.72 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 & /home/hudson/saved_omc/OMSimulator/install/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)