Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.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.VoltageRegulation2,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_VoltageRegulation2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Tests.VoltageRegulation2,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_VoltageRegulation2",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.001408/0.001408, allocations: 177.2 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.67/1.67, allocations: 221.5 MB / 230 MB, free: 7.566 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.001034/0.001034, allocations: 98.16 kB / 280.9 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04925/0.04925, allocations: 8.102 MB / 339.8 MB, free: 6.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.136e-05/2.138e-05, allocations: 1.281 kB / 398.6 MB, free: 49.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1057, allocations: 52.52 MB / 451.1 MB, free: 5.277 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1032/0.209, allocations: 77.57 MB / 0.5163 GB, free: 7.605 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/0.2092, allocations: 59.97 kB / 0.5163 GB, free: 7.547 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01127/0.2205, allocations: 3.6 MB / 0.5198 GB, free: 3.934 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2206, allocations: 0 / 0.5198 GB, free: 3.934 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.2206, allocations: 4 kB / 0.5198 GB, free: 3.93 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.0006533/0.2213, allocations: 461.6 kB / 0.5203 GB, free: 3.422 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.728e-05/0.2213, allocations: 11.98 kB / 0.5203 GB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.683e-05/0.2214, allocations: 23.7 kB / 0.5203 GB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00045/0.2219, allocations: 227.8 kB / 0.5205 GB, free: 3.125 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.2219, allocations: 0 / 0.5205 GB, free: 3.125 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.2219, allocations: 8 kB / 0.5205 GB, free: 3.117 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001577/0.2221, allocations: 55.97 kB / 0.5206 GB, free: 3.062 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000232/0.2223, allocations: 117.6 kB / 0.5207 GB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.2224, allocations: 0 / 0.5207 GB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.2224, allocations: 4 kB / 0.5207 GB, free: 2.938 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.515e-06/0.2224, allocations: 7.953 kB / 0.5207 GB, free: 2.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005527/0.223, allocations: 333.2 kB / 0.521 GB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.2231, allocations: 98.5 kB / 0.5211 GB, free: 2.461 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.2233, allocations: 92.89 kB / 0.5212 GB, free: 2.367 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.2233, allocations: 4 kB / 0.5212 GB, free: 2.363 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003659/0.2237, allocations: 314 kB / 0.5215 GB, free: 2.016 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.282e-06/0.2237, allocations: 0 / 0.5215 GB, free: 2.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005295/0.2242, allocations: 201.5 kB / 0.5217 GB, free: 1.812 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.2244, allocations: 221.6 kB / 0.5219 GB, free: 1.547 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.2246, allocations: 181.4 kB / 0.5221 GB, free: 1.363 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.2246, allocations: 33.64 kB / 0.5221 GB, free: 1.324 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.573e-05/0.2247, allocations: 104.1 kB / 0.5222 GB, free: 1.219 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.655e-05/0.2247, allocations: 43.53 kB / 0.5223 GB, free: 1.176 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.022e-05/0.2248, allocations: 4 kB / 0.5223 GB, free: 1.172 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002115/0.225, allocations: 330.8 kB / 0.5226 GB, free: 0.8398 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.185e-05/0.2251, allocations: 55.92 kB / 0.5226 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.2252, allocations: 65.7 kB / 0.5227 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/0.2253, allocations: 55.42 kB / 0.5227 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2253, allocations: 0 / 0.5227 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003189/0.2257, allocations: 209.3 kB / 0.5229 GB, free: 464 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.612e-05/0.2257, allocations: 67.39 kB / 0.523 GB, free: 384 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2257, allocations: 8.016 kB / 0.523 GB, free: 376 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.82e-05/0.2258, allocations: 0 / 0.523 GB, free: 376 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.815e-05/0.2259, allocations: 15.94 kB / 0.523 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.2259, allocations: 0 / 0.523 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.2261, allocations: 51.86 kB / 0.5231 GB, free: 308 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.45e-05/0.2262, allocations: 8 kB / 0.5231 GB, free: 300 kB / 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.0002028/0.2264, allocations: 204.8 kB / 0.5233 GB, free: 80 kB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.2456/0.472, allocations: 252.2 kB / 0.5235 GB, free: 81.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.887e-05/0.4721, allocations: 23.81 kB / 0.5236 GB, free: 81.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.684e-05/0.4721, allocations: 12.98 kB / 0.5236 GB, free: 81.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.4722, allocations: 3.969 kB / 0.5236 GB, free: 81.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.4722, allocations: 3.094 kB / 0.5236 GB, free: 81.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.4722, allocations: 0.5 kB / 0.5236 GB, free: 81.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.4724, allocations: 241.3 kB / 0.5238 GB, free: 80.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.4724, allocations: 0.8438 kB / 0.5238 GB, free: 80.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.67e-05/0.4724, allocations: 2.594 kB / 0.5238 GB, free: 80.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.4725, allocations: 1.5 kB / 0.5238 GB, free: 80.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.4725, allocations: 11.08 kB / 0.5238 GB, free: 80.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.4725, allocations: 0 / 0.5238 GB, free: 80.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4725, allocations: 0 / 0.5238 GB, free: 80.89 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004379/0.4729, allocations: 288.5 kB / 0.5241 GB, free: 80.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.4731, allocations: 121.5 kB / 0.5242 GB, free: 80.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.648e-05/0.4731, allocations: 13.84 kB / 0.5242 GB, free: 80.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002797/0.4734, allocations: 58.48 kB / 0.5243 GB, free: 80.72 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.398e-05/0.4735, allocations: 19.59 kB / 0.5243 GB, free: 80.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/0.4735, allocations: 19.38 kB / 0.5243 GB, free: 80.72 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.96e-05/0.4736, allocations: 140.6 kB / 0.5244 GB, free: 80.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4737, allocations: 3.656 kB / 0.5245 GB, free: 80.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003535/0.474, allocations: 64.92 kB / 0.5245 GB, free: 80.64 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.0006815/0.4747, allocations: 0.8539 MB / 0.5253 GB, free: 80.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003978/0.4751, allocations: 353.3 kB / 0.5257 GB, free: 79.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4751, allocations: 4.875 kB / 0.5257 GB, free: 79.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002809/0.4754, allocations: 387 kB / 0.5261 GB, free: 79.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.4756, allocations: 14.97 kB / 0.5261 GB, free: 79.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006012/0.4762, allocations: 269.1 kB / 0.5263 GB, free: 79.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000168/0.4764, allocations: 0.72 MB / 0.527 GB, free: 78.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.649e-05/0.4765, allocations: 12.55 kB / 0.527 GB, free: 78.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.381e-05/0.4765, allocations: 44.59 kB / 0.5271 GB, free: 78.95 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4765, allocations: 0 / 0.5271 GB, free: 78.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02859/0.5051, allocations: 3.777 MB / 0.5308 GB, free: 78.74 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002018/0.5054, allocations: 123.9 kB / 0.5309 GB, free: 78.55 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/2.118, allocations: 0 / 0.5309 GB, free: 78.55 MB / 362.7 MB (rm -f PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.pipe ; mkfifo PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.pipe >> ../files/PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Tests_VoltageRegulation2_fmu --startTime=0 --stopTime=350 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Tests_VoltageRegulation2.fmu > PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.pipe 2>&1)