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"}) [: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.001265/0.001265, allocations: 184.6 kB / 7.845 MB, free: 2.512 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.233/1.233, allocations: 221.4 MB / 229.7 MB, free: 3.039 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.0009269/0.0009269, allocations: 103.1 kB / 280.5 MB, free: 1.336 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03406/0.03406, allocations: 8.101 MB / 339.4 MB, free: 6.434 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1641/0.1982, allocations: 58.62 MB / 398 MB, free: 67.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0682/0.2664, allocations: 52.5 MB / 450.5 MB, free: 15.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2225/0.489, allocations: 77.85 MB / 0.516 GB, free: 320 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001999/0.4892, allocations: 56.11 kB / 0.516 GB, free: 296 kB / 330.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.01402/0.5033, allocations: 4.886 MB / 0.5208 GB, free: 11.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.5033, allocations: 15.94 kB / 0.5208 GB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.869e-05/0.5034, allocations: 39.53 kB / 0.5209 GB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008444/0.5043, allocations: 388.5 kB / 0.5212 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.5043, allocations: 4.844 kB / 0.5212 GB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.514e-05/0.5044, allocations: 8 kB / 0.5212 GB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002664/0.5046, allocations: 132.2 kB / 0.5214 GB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.505, allocations: 199.6 kB / 0.5215 GB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.505, allocations: 0 / 0.5215 GB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.5051, allocations: 0 / 0.5215 GB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.5051, allocations: 0 / 0.5215 GB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/0.5061, allocations: 0.5155 MB / 0.5221 GB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.5064, allocations: 175.1 kB / 0.5222 GB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.5066, allocations: 170.5 kB / 0.5224 GB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/0.5066, allocations: 3.984 kB / 0.5224 GB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003265/0.5069, allocations: 363.7 kB / 0.5227 GB, free: 10.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.482e-06/0.5069, allocations: 0 / 0.5227 GB, free: 10.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005462/0.5075, allocations: 350.5 kB / 0.5231 GB, free: 9.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/0.5076, allocations: 225.2 kB / 0.5233 GB, free: 9.586 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004986/0.5081, allocations: 0.4888 MB / 0.5238 GB, free: 9.172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.5081, allocations: 29.7 kB / 0.5238 GB, free: 9.137 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.568e-05/0.5082, allocations: 123.7 kB / 0.5239 GB, free: 9.027 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.592e-05/0.5082, allocations: 43.41 kB / 0.5239 GB, free: 8.988 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.404e-05/0.5082, allocations: 0 / 0.5239 GB, free: 8.988 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.5084, allocations: 358.7 kB / 0.5243 GB, free: 8.648 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.5085, allocations: 125.1 kB / 0.5244 GB, free: 8.555 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.5087, allocations: 146.1 kB / 0.5245 GB, free: 8.438 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.5089, allocations: 122.6 kB / 0.5247 GB, free: 8.348 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.5089, allocations: 0 / 0.5247 GB, free: 8.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000495/0.5094, allocations: 359.4 kB / 0.525 GB, free: 8.043 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.5094, allocations: 4 kB / 0.525 GB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.5094, allocations: 0 / 0.525 GB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.5095, allocations: 0 / 0.525 GB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.781e-05/0.5095, allocations: 12 kB / 0.525 GB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.5095, allocations: 0 / 0.525 GB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/0.5098, allocations: 51.98 kB / 0.5251 GB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.678e-05/0.5099, allocations: 19.09 kB / 0.5251 GB, free: 7.961 MB / 346.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.0001968/0.5101, allocations: 194.8 kB / 0.5253 GB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.655e-05/0.5102, allocations: 47.53 kB / 0.5253 GB, free: 7.707 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.026e-05/0.5102, allocations: 54.41 kB / 0.5254 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.5102, allocations: 0 / 0.5254 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.5102, allocations: 4 kB / 0.5254 GB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.5102, allocations: 0 / 0.5254 GB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.5105, allocations: 333.4 kB / 0.5257 GB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.5105, allocations: 0 / 0.5257 GB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.601e-05/0.5106, allocations: 7.984 kB / 0.5257 GB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.5106, allocations: 3.938 kB / 0.5257 GB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.296e-05/0.5106, allocations: 11.81 kB / 0.5257 GB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.5106, allocations: 0 / 0.5257 GB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.5106, allocations: 0 / 0.5257 GB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000583/0.5112, allocations: 434.8 kB / 0.5261 GB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006668/0.5119, allocations: 0.786 MB / 0.5269 GB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000393/0.5123, allocations: 191.3 kB / 0.5271 GB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.526e-05/0.5124, allocations: 19.14 kB / 0.5271 GB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/0.5127, allocations: 63.95 kB / 0.5272 GB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.814e-05/0.5128, allocations: 22.66 kB / 0.5272 GB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.668e-05/0.5129, allocations: 19.3 kB / 0.5272 GB, free: 5.918 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0003597/0.5132, allocations: 393.3 kB / 0.5276 GB, free: 5.602 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008641/0.5141, allocations: 72 kB / 0.5276 GB, free: 5.531 MB / 346.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.0001975/0.5143, allocations: 149.9 kB / 0.5278 GB, free: 5.383 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003581/0.5147, allocations: 309.6 kB / 0.5281 GB, free: 5.148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.5147, allocations: 0 / 0.5281 GB, free: 5.148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003208/0.515, allocations: 382.5 kB / 0.5284 GB, free: 4.941 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001953/0.5152, allocations: 28.97 kB / 0.5285 GB, free: 4.926 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008308/0.5161, allocations: 0.5414 MB / 0.529 GB, free: 4.402 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003895/0.5165, allocations: 0.8372 MB / 0.5298 GB, free: 3.547 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5165, allocations: 4 kB / 0.5298 GB, free: 3.543 MB / 346.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)