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.001198/0.001198, allocations: 102.2 kB / 16.31 MB, free: 5.879 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.001412/0.001412, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.345/1.345, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04521/0.04521, allocations: 8.096 MB / 299.2 MB, free: 6.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 59.91 kB / 361.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1926, allocations: 51.51 MB / 413.4 MB, free: 25.6 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.FourVariableLoadsThreeFeeders): time 0.004762/0.1975, allocations: 4.747 MB / 418.1 MB, free: 20.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004363/0.2019, allocations: 3.155 MB / 421.3 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003618/0.2023, allocations: 12 kB / 421.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005995/0.2029, allocations: 282.2 kB / 421.5 MB, free: 17.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001155/0.2041, allocations: 0.5358 MB / 422.1 MB, free: 16.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002074/0.2062, allocations: 1.48 MB / 423.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008244/0.207, allocations: 1.098 MB / 424.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003286/0.2073, allocations: 311 kB / 425 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003162/0.2076, allocations: 454.3 kB / 425.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004866/0.2081, allocations: 0.5446 MB / 425.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.2083, allocations: 92 kB / 426 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006334/0.2089, allocations: 427.7 kB / 426.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.2091, allocations: 207.1 kB / 426.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003294/0.2094, allocations: 0.4975 MB / 427.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001021/0.2104, allocations: 1.266 MB / 428.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2105, allocations: 4 kB / 428.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2105, allocations: 0 / 428.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.2105, allocations: 0 / 428.4 MB, free: 10.46 MB / 302.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.008857/0.2193, allocations: 2.578 MB / 431 MB, free: 7.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.2194, allocations: 11.89 kB / 431 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.2195, allocations: 118.7 kB / 431.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.2197, allocations: 107.8 kB / 431.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006256/0.2204, allocations: 0.5775 MB / 431.8 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.267e-05/0.2205, allocations: 172.4 kB / 432 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.2206, allocations: 76 kB / 432.1 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/0.222, allocations: 1.085 MB / 433.1 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.222, allocations: 0 / 433.1 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.084e-05/0.2221, allocations: 28 kB / 433.2 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.2221, allocations: 16 kB / 433.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/0.2234, allocations: 0.9889 MB / 434.2 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004167/0.2276, allocations: 4.06 MB / 438.2 MB, free: 156 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001898/0.2295, allocations: 1.598 MB / 439.8 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001076/0.2306, allocations: 0.7575 MB / 440.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/0.2307, allocations: 20.98 kB / 440.6 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001523/0.2322, allocations: 1.003 MB / 441.6 MB, free: 12.65 MB / 318.1 MB Notification: Performance of pre-optimization done (n=123): time 3.376e-06/0.2323, allocations: 0 / 441.6 MB, free: 12.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.02237/0.2546, allocations: 5.611 MB / 447.2 MB, free: 7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.2548, allocations: 260.3 kB / 447.5 MB, free: 6.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007698/0.2556, allocations: 0.534 MB / 448 MB, free: 6.152 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001799/0.2558, allocations: 65.7 kB / 448.1 MB, free: 6.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.256, allocations: 289.8 kB / 448.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003643/0.2564, allocations: 394.3 kB / 448.7 MB, free: 5.402 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004043/0.2568, allocations: 218.9 kB / 449 MB, free: 5.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.257, allocations: 394.7 kB / 449.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.258, allocations: 0.6547 MB / 450 MB, free: 4.133 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.2591, allocations: 0.7594 MB / 450.8 MB, free: 3.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01794/0.2771, allocations: 4.805 MB / 455.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.2771, allocations: 0 / 455.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004239/0.2813, allocations: 2.218 MB / 457.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.198e-05/0.2814, allocations: 41.62 kB / 457.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.2814, allocations: 0 / 457.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008991/0.2904, allocations: 2.375 MB / 460.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000698/0.2912, allocations: 167.7 kB / 460.4 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004353/0.2955, allocations: 2.257 MB / 462.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.2967, allocations: 146.8 kB / 462.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.2969, allocations: 43.98 kB / 462.8 MB, free: 7.215 MB / 334.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.00058/0.2974, allocations: 295.7 kB / 463.1 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002565/0.2977, allocations: 90.97 kB / 463.2 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004144/0.3019, allocations: 2.42 MB / 465.6 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.3019, allocations: 12 kB / 465.6 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3019, allocations: 0 / 465.6 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.3019, allocations: 3.984 kB / 465.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006436/0.3084, allocations: 4.208 MB / 469.8 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.3084, allocations: 0 / 469.8 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004232/0.3088, allocations: 115.8 kB / 469.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008531/0.3174, allocations: 2.133 MB / 472.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.3175, allocations: 35.98 kB / 472.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004619/0.3221, allocations: 2.384 MB / 474.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3221, allocations: 0 / 474.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004231/0.3264, allocations: 2.429 MB / 476.9 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005117/0.3269, allocations: 335.6 kB / 477.2 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002022/0.3271, allocations: 39.98 kB / 477.3 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.3282, allocations: 107.8 kB / 477.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002346/0.3284, allocations: 109 kB / 477.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.3285, allocations: 43.98 kB / 477.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005129/0.329, allocations: 378.8 kB / 477.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.329, allocations: 0 / 477.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008739/0.3299, allocations: 331.6 kB / 478.2 MB, free: 7.594 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 (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.0053/0.3352, allocations: 3.342 MB / 481.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005627/0.3409, allocations: 2.148 MB / 483.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.3409, allocations: 0.6562 kB / 483.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003687/0.3446, allocations: 1.391 MB / 485.1 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008503/0.3455, allocations: 124 kB / 485.2 MB, free: 0.6914 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.01688/0.3624, allocations: 10.35 MB / 495.6 MB, free: 6.168 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006004/0.363, allocations: 0.9732 MB / 496.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004707/0.3635, allocations: 110.1 kB / 496.7 MB, free: 5.055 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004151/0.3639, allocations: 319.3 kB / 497 MB, free: 4.742 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3639, allocations: 0 / 497 MB, free: 4.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3938/0.7577, allocations: 28.98 MB / 0.5136 GB, free: 94.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.43, allocations: 1.781 kB / 0.5136 GB, free: 94.51 MB / 382.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)