Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.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.Tests.VoltageRegulation1,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_VoltageRegulation1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Tests.VoltageRegulation1,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_VoltageRegulation1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009733/0.0009735, allocations: 178.3 kB / 8.048 MB, free: 1.027 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.443/1.443, allocations: 221.5 MB / 230 MB, free: 7.586 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.0008492/0.0008489, allocations: 88.81 kB / 280.9 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06288/0.06288, allocations: 8.094 MB / 339.8 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.82e-05/1.831e-05, allocations: 0.9062 kB / 398.6 MB, free: 49.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09942/0.09946, allocations: 52.52 MB / 451.1 MB, free: 5.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1041/0.2036, allocations: 77.57 MB / 0.5163 GB, free: 7.625 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001947/0.2039, allocations: 59.97 kB / 0.5163 GB, free: 7.566 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01311/0.217, allocations: 4.564 MB / 0.5208 GB, free: 2.992 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.217, allocations: 0 / 0.5208 GB, free: 2.992 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.2171, allocations: 4 kB / 0.5208 GB, free: 2.988 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005516/0.2176, allocations: 0.5982 MB / 0.5214 GB, free: 2.332 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001039/0.2177, allocations: 23.92 kB / 0.5214 GB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.327e-05/0.2178, allocations: 43.48 kB / 0.5214 GB, free: 2.266 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005292/0.2184, allocations: 375.4 kB / 0.5218 GB, free: 1.859 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.2184, allocations: 4 kB / 0.5218 GB, free: 1.855 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.2184, allocations: 4 kB / 0.5218 GB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002041/0.2186, allocations: 131.9 kB / 0.5219 GB, free: 1.723 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.2189, allocations: 193.5 kB / 0.5221 GB, free: 1.527 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.2189, allocations: 0 / 0.5221 GB, free: 1.527 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/0.219, allocations: 7.953 kB / 0.5221 GB, free: 1.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.219, allocations: 0 / 0.5221 GB, free: 1.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006629/0.2197, allocations: 0.4972 MB / 0.5226 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/0.2199, allocations: 174.5 kB / 0.5228 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.2201, allocations: 160.8 kB / 0.5229 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.2201, allocations: 0 / 0.5229 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003889/0.2205, allocations: 403.4 kB / 0.5233 GB, free: 212 kB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.713e-06/0.2205, allocations: 0 / 0.5233 GB, free: 212 kB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.238/0.4585, allocations: 468.4 kB / 0.5237 GB, free: 80.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.4587, allocations: 216.5 kB / 0.524 GB, free: 80.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000834/0.4595, allocations: 497.1 kB / 0.5244 GB, free: 80.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.259e-05/0.4596, allocations: 29.67 kB / 0.5245 GB, free: 80.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.4598, allocations: 189.8 kB / 0.5246 GB, free: 80.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.131e-05/0.4599, allocations: 50.14 kB / 0.5247 GB, free: 80.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.4599, allocations: 2.875 kB / 0.5247 GB, free: 80.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.46, allocations: 361.8 kB / 0.525 GB, free: 79.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000226/0.4603, allocations: 118.1 kB / 0.5251 GB, free: 79.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.4605, allocations: 143.2 kB / 0.5253 GB, free: 79.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000327/0.4609, allocations: 126.3 kB / 0.5254 GB, free: 79.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4609, allocations: 0 / 0.5254 GB, free: 79.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001121/0.462, allocations: 469.8 kB / 0.5259 GB, free: 79.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.537e-05/0.4621, allocations: 67.02 kB / 0.5259 GB, free: 79.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4621, allocations: 1.312 kB / 0.5259 GB, free: 79.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.69e-05/0.4622, allocations: 1.219 kB / 0.5259 GB, free: 79.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.4623, allocations: 13.31 kB / 0.5259 GB, free: 79.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.4623, allocations: 0.9375 kB / 0.5259 GB, free: 79.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003741/0.4627, allocations: 50.17 kB / 0.526 GB, free: 79.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.949e-05/0.4628, allocations: 14.11 kB / 0.526 GB, free: 79.84 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: tapChanger.furtherTapChangeTimeout:DISCRETE(start = tapChanger.nextTapChangeTimeout unit = "s" fixed = false protected = true ) "Time lag between the first change and the following tap" type: Real tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = false protected = true ) "Time when the signal U went out its normal range" type: Real tapChanger.tap:DISCRETE(start = tapChanger.startTap fixed = false ) "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: 20 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,$PRE.voltage.nextEvent,voltage.nextEvent,voltage.nextEventScaled,$PRE.tapChanger.tap,tapChanger.tap,$PRE.tapChanger.abnormalUTime,tapChanger.abnormalUTime,tapChanger.normalU,tapChanger.decreaseEvent,tapChanger.increaseEvent,$PRE.tapChanger.furtherTapChangeTimeout,tapChanger.furtherTapChangeTimeout) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003529/0.4631, allocations: 210.4 kB / 0.5262 GB, free: 79.66 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001194/0.4643, allocations: 0.5012 MB / 0.5267 GB, free: 79.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.655e-05/0.4644, allocations: 48.39 kB / 0.5267 GB, free: 79.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.4646, allocations: 48.3 kB / 0.5268 GB, free: 79.58 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.4646, allocations: 1.641 kB / 0.5268 GB, free: 79.58 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.4646, allocations: 0.5625 kB / 0.5268 GB, free: 79.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.4646, allocations: 0 / 0.5268 GB, free: 79.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004294/0.465, allocations: 338.2 kB / 0.5271 GB, free: 79.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.465, allocations: 1.25 kB / 0.5271 GB, free: 79.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.191e-05/0.4651, allocations: 5.156 kB / 0.5271 GB, free: 79.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4651, allocations: 0 / 0.5271 GB, free: 79.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.714e-05/0.4651, allocations: 17.11 kB / 0.5271 GB, free: 79.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.4651, allocations: 4.969 kB / 0.5271 GB, free: 79.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4652, allocations: 0 / 0.5271 GB, free: 79.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.4663, allocations: 0.5331 MB / 0.5276 GB, free: 79.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002794/0.4665, allocations: 177.2 kB / 0.5278 GB, free: 79.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.4667, allocations: 12.69 kB / 0.5278 GB, free: 79.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003616/0.467, allocations: 59.34 kB / 0.5279 GB, free: 79.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.4672, allocations: 21.3 kB / 0.5279 GB, free: 79.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.127e-05/0.4672, allocations: 22.67 kB / 0.5279 GB, free: 79.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006099/0.4679, allocations: 391.8 kB / 0.5283 GB, free: 79.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4679, allocations: 0 / 0.5283 GB, free: 79.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004546/0.4683, allocations: 78.61 kB / 0.5284 GB, free: 79.12 MB / 362.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: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,voltage.nextEvent,voltage.nextEventScaled,tapChanger.tap,tapChanger.abnormalUTime,tapChanger.normalU,tapChanger.decreaseEvent,tapChanger.increaseEvent,tapChanger.furtherTapChangeTimeout) * Number of discrete states: 16 (tapChanger.tap,tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,tapChanger.decreaseEvent,tapChanger.increaseEvent,tapChanger.normalU,voltage.nextEvent,voltage.last,voltage.nextEventScaled,voltage.b,voltage.a,$whenCondition5) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001283/0.4696, allocations: 1.001 MB / 0.5294 GB, free: 78.51 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000655/0.4703, allocations: 438.1 kB / 0.5298 GB, free: 78.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.4703, allocations: 0 / 0.5298 GB, free: 78.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004289/0.4708, allocations: 433.7 kB / 0.5302 GB, free: 78.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.4711, allocations: 31.72 kB / 0.5302 GB, free: 78.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.4725, allocations: 0.6425 MB / 0.5308 GB, free: 78.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.4729, allocations: 0.8157 MB / 0.5316 GB, free: 77.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.473, allocations: 44.55 kB / 0.5317 GB, free: 77.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.4732, allocations: 107.7 kB / 0.5318 GB, free: 77.35 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4732, allocations: 2.625 kB / 0.5318 GB, free: 77.35 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03121/0.5044, allocations: 6.611 MB / 0.5382 GB, free: 76.04 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/0.5047, allocations: 120.6 kB / 0.5384 GB, free: 75.85 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.083/2.587, allocations: 0 / 0.5384 GB, free: 75.85 MB / 362.7 MB (rm -f PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe ; mkfifo PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe >> ../files/PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Tests_VoltageRegulation1_fmu --startTime=0 --stopTime=350 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Tests_VoltageRegulation1.fmu > PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe 2>&1)