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.001194/0.001194, allocations: 105.2 kB / 16.31 MB, free: 6.391 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.00122/0.00122, allocations: 189.8 kB / 17.24 MB, free: 5.922 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.325/1.325, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04654/0.04654, allocations: 8.093 MB / 299.2 MB, free: 6.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 59.91 kB / 361.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2239, allocations: 51.51 MB / 413.4 MB, free: 25.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.FourVariableLoadsThreeFeeders): time 0.004626/0.2285, allocations: 4.74 MB / 418.1 MB, free: 20.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003668/0.2322, allocations: 3.151 MB / 421.2 MB, free: 17.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003462/0.2326, allocations: 12 kB / 421.3 MB, free: 17.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006399/0.2333, allocations: 282.2 kB / 421.5 MB, free: 17.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00109/0.2344, allocations: 0.5358 MB / 422.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002061/0.2364, allocations: 1.479 MB / 423.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008044/0.2373, allocations: 1.109 MB / 424.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003376/0.2376, allocations: 307 kB / 425 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003093/0.2379, allocations: 450.3 kB / 425.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004761/0.2384, allocations: 0.5524 MB / 425.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000121/0.2385, allocations: 92 kB / 426 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000616/0.2392, allocations: 419.7 kB / 426.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000152/0.2393, allocations: 219.1 kB / 426.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003114/0.2396, allocations: 497.5 kB / 427.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008934/0.2405, allocations: 1.27 MB / 428.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2405, allocations: 0 / 428.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2406, allocations: 0 / 428.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.2406, allocations: 0 / 428.4 MB, free: 10.41 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.00913/0.2497, allocations: 2.582 MB / 431 MB, free: 7.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.2498, allocations: 12.03 kB / 431 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.2499, allocations: 114.7 kB / 431.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002374/0.2502, allocations: 107.8 kB / 431.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006988/0.2509, allocations: 0.5775 MB / 431.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.21e-05/0.251, allocations: 172.4 kB / 432 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.2511, allocations: 72 kB / 432 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.2525, allocations: 1.085 MB / 433.1 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.2526, allocations: 0 / 433.1 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.156e-05/0.2527, allocations: 36 kB / 433.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.2527, allocations: 16 kB / 433.2 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/0.254, allocations: 0.9812 MB / 434.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004274/0.2583, allocations: 4.064 MB / 438.2 MB, free: 108 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001997/0.2603, allocations: 1.587 MB / 439.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.2614, allocations: 0.7644 MB / 440.6 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001138/0.2616, allocations: 24.88 kB / 440.6 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001564/0.2631, allocations: 1.003 MB / 441.6 MB, free: 12.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=123): time 2.975e-06/0.2632, allocations: 4 kB / 441.6 MB, free: 12.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.02239/0.2855, allocations: 5.611 MB / 447.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.2857, allocations: 260.3 kB / 447.5 MB, free: 6.645 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007749/0.2865, allocations: 0.5379 MB / 448 MB, free: 6.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002032/0.2867, allocations: 57.69 kB / 448.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002452/0.287, allocations: 285.9 kB / 448.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004038/0.2874, allocations: 394.2 kB / 448.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004151/0.2878, allocations: 222.9 kB / 449 MB, free: 5.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.288, allocations: 390.7 kB / 449.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009766/0.289, allocations: 0.6547 MB / 450 MB, free: 4.094 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.2901, allocations: 0.7594 MB / 450.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01752/0.3076, allocations: 4.805 MB / 455.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.3076, allocations: 0 / 455.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003886/0.3115, allocations: 2.218 MB / 457.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.409e-05/0.3116, allocations: 37.7 kB / 457.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.3116, allocations: 0 / 457.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008886/0.3205, allocations: 2.383 MB / 460.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006886/0.3212, allocations: 159.7 kB / 460.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004202/0.3254, allocations: 2.265 MB / 462.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.3266, allocations: 157.6 kB / 462.8 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.3267, allocations: 43.98 kB / 462.8 MB, free: 7.164 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.0006122/0.3273, allocations: 295.7 kB / 463.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.3275, allocations: 90.97 kB / 463.2 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004171/0.3317, allocations: 2.42 MB / 465.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.3318, allocations: 12 kB / 465.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3318, allocations: 0 / 465.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.3318, allocations: 3.984 kB / 465.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006495/0.3383, allocations: 4.2 MB / 469.8 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3383, allocations: 0 / 469.8 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004177/0.3387, allocations: 119.8 kB / 469.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008594/0.3473, allocations: 2.136 MB / 472.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002089/0.3476, allocations: 31.98 kB / 472.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004579/0.3522, allocations: 2.392 MB / 474.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.3522, allocations: 0 / 474.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004407/0.3566, allocations: 2.421 MB / 476.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005542/0.3572, allocations: 339.6 kB / 477.2 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000199/0.3574, allocations: 40 kB / 477.3 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.3584, allocations: 111 kB / 477.4 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002728/0.3587, allocations: 105 kB / 477.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.3588, allocations: 47.98 kB / 477.5 MB, free: 8.234 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006134/0.3595, allocations: 370.8 kB / 477.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3595, allocations: 0 / 477.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009281/0.3604, allocations: 331.7 kB / 478.2 MB, free: 7.547 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.005596/0.366, allocations: 3.344 MB / 481.6 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006216/0.3723, allocations: 2.136 MB / 483.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.3723, allocations: 0.6562 kB / 483.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003616/0.3759, allocations: 1.395 MB / 485.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008974/0.3768, allocations: 129 kB / 485.2 MB, free: 0.6445 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.01695/0.3938, allocations: 10.35 MB / 495.6 MB, free: 6.113 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005481/0.3944, allocations: 0.9732 MB / 496.6 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004914/0.3949, allocations: 114.1 kB / 496.7 MB, free: 4.996 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.3953, allocations: 311.3 kB / 497 MB, free: 4.691 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3953, allocations: 4 kB / 497 MB, free: 4.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3124/0.7078, allocations: 28.97 MB / 0.5136 GB, free: 94.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/12.16, allocations: 17.59 kB / 0.5136 GB, free: 94.98 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 & 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)