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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 195.7 kB / 7.849 MB, free: 2.465 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 221.4 MB / 229.6 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009622/0.0009622, allocations: 92.19 kB / 280.5 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03704/0.03704, allocations: 8.089 MB / 339.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1953/0.2324, allocations: 58.63 MB / 398 MB, free: 67.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09021/0.3226, allocations: 52.51 MB / 450.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2685/0.5912, allocations: 84.95 MB / 0.5229 GB, free: 9.496 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.5915, allocations: 66.66 kB / 0.523 GB, free: 9.465 MB / 346.7 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.07809/0.6696, allocations: 29.55 MB / 0.5518 GB, free: 2.203 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.6696, allocations: 15.94 kB / 0.5519 GB, free: 2.188 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002795/0.6699, allocations: 110.8 kB / 0.552 GB, free: 2.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009224/0.6709, allocations: 0.571 MB / 0.5525 GB, free: 1.594 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.671, allocations: 140.1 kB / 0.5526 GB, free: 1.434 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.6711, allocations: 40 kB / 0.5527 GB, free: 1.395 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001466/0.6726, allocations: 0.9158 MB / 0.5536 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.6741, allocations: 0.954 MB / 0.5545 GB, free: 88 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.6742, allocations: 3.938 kB / 0.5545 GB, free: 84 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.686e-05/0.6743, allocations: 11.98 kB / 0.5545 GB, free: 72 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.6743, allocations: 16 kB / 0.5545 GB, free: 56 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006003/0.6803, allocations: 4.226 MB / 0.5587 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.6818, allocations: 1.092 MB / 0.5597 GB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009611/0.6828, allocations: 0.6951 MB / 0.5604 GB, free: 9.711 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000239/0.683, allocations: 110.1 kB / 0.5605 GB, free: 9.586 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001271/0.6843, allocations: 0.8845 MB / 0.5614 GB, free: 8.664 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 3.277e-06/0.6843, allocations: 0 / 0.5614 GB, free: 8.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.006256/0.6906, allocations: 2.292 MB / 0.5636 GB, free: 6.359 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.6907, allocations: 256.3 kB / 0.5639 GB, free: 6.055 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005434/0.6913, allocations: 422.2 kB / 0.5643 GB, free: 5.641 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001036/0.6914, allocations: 37.7 kB / 0.5643 GB, free: 5.598 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.6915, allocations: 201.5 kB / 0.5645 GB, free: 5.395 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003143/0.6918, allocations: 374.4 kB / 0.5649 GB, free: 5.023 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.897e-05/0.6919, allocations: 0 / 0.5649 GB, free: 5.023 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.6921, allocations: 394.7 kB / 0.5652 GB, free: 4.629 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008468/0.6929, allocations: 0.5451 MB / 0.5658 GB, free: 4.082 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008928/0.6938, allocations: 0.6193 MB / 0.5664 GB, free: 3.453 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001562/0.6954, allocations: 0.6338 MB / 0.567 GB, free: 2.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.6954, allocations: 0 / 0.567 GB, free: 2.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003614/0.699, allocations: 1.869 MB / 0.5688 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.6991, allocations: 8 kB / 0.5688 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.6991, allocations: 4 kB / 0.5688 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008265/0.7074, allocations: 1.9 MB / 0.5707 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005533/0.7079, allocations: 115.9 kB / 0.5708 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004686/0.7126, allocations: 2.398 MB / 0.5731 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001097/0.7138, allocations: 111.2 kB / 0.5732 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.7139, allocations: 39.97 kB / 0.5733 GB, free: 12.33 MB / 394.7 MB Warning: Assuming fixed start value for the following 3 variables: HVMV.tapChanger.furtherTapChangeTimeout:DISCRETE(start = HVMV.tapChanger.nextTapChangeTimeout unit = "s" fixed = false protected = true ) "Time lag between the first change and the following tap" type: Real HVMV.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = false protected = true ) "Time when the signal U went out its normal range" type: Real HVMV.tapChanger.tap:DISCRETE(start = HVMV.tapChanger.startTap fixed = false ) "Current tap position" type: Integer Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: varLoad2.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real varLoad2.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real varLoad3.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real varLoad1.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real varLoad2.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real varLoad4.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real HVMV.UB:VARIABLE(unit = "V" ) "Voltage at port B" 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 ($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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 76 * 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 {19 31} Notification: Performance of prepare postOptimizeDAE: time 0.0004027/0.7143, allocations: 206.4 kB / 0.5735 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/0.7145, allocations: 90.97 kB / 0.5736 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004374/0.7189, allocations: 2.282 MB / 0.5758 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.494e-05/0.7189, allocations: 12 kB / 0.5758 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.7189, allocations: 3.906 kB / 0.5758 GB, free: 9.723 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.7189, allocations: 7.969 kB / 0.5758 GB, free: 9.715 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.7206, allocations: 1.35 MB / 0.5771 GB, free: 8.324 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.7206, allocations: 4 kB / 0.5771 GB, free: 8.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005202/0.7211, allocations: 123.8 kB / 0.5772 GB, free: 8.199 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008069/0.7292, allocations: 1.943 MB / 0.5791 GB, free: 6.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.7294, allocations: 19.97 kB / 0.5792 GB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004794/0.7342, allocations: 2.522 MB / 0.5816 GB, free: 3.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.7342, allocations: 0 / 0.5816 GB, free: 3.66 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004049/0.7382, allocations: 2.152 MB / 0.5837 GB, free: 1.484 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004082/0.7423, allocations: 2.555 MB / 0.5862 GB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005925/0.7429, allocations: 359.6 kB / 0.5866 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002069/0.7432, allocations: 12 kB / 0.5866 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.7442, allocations: 115.8 kB / 0.5867 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002418/0.7445, allocations: 100.8 kB / 0.5868 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.7446, allocations: 47.97 kB / 0.5868 GB, free: 14.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004179/0.745, allocations: 330.9 kB / 0.5871 GB, free: 13.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001517/0.7465, allocations: 339.6 kB / 0.5875 GB, free: 13.61 MB / 410.7 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,varLoad1.degradedMode,varLoad2.degradedMode,varLoad3.degradedMode,varLoad4.degradedMode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 72 * 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 {18 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.001071/0.7476, allocations: 498.3 kB / 0.5879 GB, free: 13.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004268/0.7519, allocations: 1.713 MB / 0.5896 GB, free: 11.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.7519, allocations: 0.6562 kB / 0.5896 GB, free: 11.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003211/0.7551, allocations: 1.242 MB / 0.5908 GB, free: 10.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007389/0.7559, allocations: 78.05 kB / 0.5909 GB, free: 10.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.7587, allocations: 1.189 MB / 0.5921 GB, free: 8.914 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007324/0.7595, allocations: 1.078 MB / 0.5931 GB, free: 7.805 MB / 410.7 MB Notification: Performance of SimCode: time 4.71e-07/0.7595, allocations: 0 / 0.5931 GB, free: 7.805 MB / 410.7 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)