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.00203/0.00203, allocations: 182.3 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 221.4 MB / 235.1 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009237/0.0009235, allocations: 93.91 kB / 286.1 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05526/0.05526, allocations: 8.105 MB / 345.1 MB, free: 1.941 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.671e-05/4.674e-05, allocations: 8 kB / 405.6 MB, free: 61.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1346, allocations: 52.51 MB / 458.1 MB, free: 9.391 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.426/0.5607, allocations: 78.5 MB / 0.524 GB, free: 7.539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001596/0.5609, allocations: 54.8 kB / 0.524 GB, free: 7.516 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01135/0.5723, allocations: 3.617 MB / 0.5276 GB, free: 4.398 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5724, allocations: 0 / 0.5276 GB, free: 4.398 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.5724, allocations: 4 kB / 0.5276 GB, free: 4.395 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000513/0.5729, allocations: 460.2 kB / 0.528 GB, free: 3.898 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.573, allocations: 12.03 kB / 0.528 GB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.244e-05/0.573, allocations: 37.94 kB / 0.5281 GB, free: 3.844 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.134e-05/0.5731, allocations: 23.77 kB / 0.5281 GB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.5734, allocations: 232 kB / 0.5283 GB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.5734, allocations: 7.984 kB / 0.5283 GB, free: 3.559 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.724e-05/0.5735, allocations: 4 kB / 0.5283 GB, free: 3.555 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002503/0.5737, allocations: 124.2 kB / 0.5284 GB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.5737, allocations: 0 / 0.5284 GB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.5738, allocations: 8 kB / 0.5284 GB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.5738, allocations: 7.953 kB / 0.5285 GB, free: 3.438 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.5739, allocations: 53.98 kB / 0.5285 GB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00054/0.5745, allocations: 366.6 kB / 0.5289 GB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001509/0.5746, allocations: 103.6 kB / 0.529 GB, free: 2.961 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.5748, allocations: 96.14 kB / 0.529 GB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.5748, allocations: 0 / 0.529 GB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003513/0.5752, allocations: 314 kB / 0.5293 GB, free: 2.594 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.463e-06/0.5752, allocations: 0 / 0.5293 GB, free: 2.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005201/0.5757, allocations: 285.4 kB / 0.5296 GB, free: 2.344 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/0.5759, allocations: 225.2 kB / 0.5298 GB, free: 2.078 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.576, allocations: 188.9 kB / 0.53 GB, free: 1.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.559e-05/0.5761, allocations: 33.2 kB / 0.53 GB, free: 1.875 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.454e-05/0.5762, allocations: 102.5 kB / 0.5301 GB, free: 1.785 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.631e-05/0.5762, allocations: 43.28 kB / 0.5302 GB, free: 1.746 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.118e-05/0.5762, allocations: 7.562 kB / 0.5302 GB, free: 1.742 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.5764, allocations: 326.2 kB / 0.5305 GB, free: 1.422 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.275e-05/0.5765, allocations: 54.3 kB / 0.5306 GB, free: 1.387 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.5766, allocations: 76.31 kB / 0.5306 GB, free: 1.328 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.5767, allocations: 113.4 kB / 0.5307 GB, free: 1.227 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.5767, allocations: 0 / 0.5307 GB, free: 1.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003645/0.5771, allocations: 275.3 kB / 0.531 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.278e-05/0.5772, allocations: 79.03 kB / 0.5311 GB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.5772, allocations: 0 / 0.5311 GB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.5772, allocations: 0 / 0.5311 GB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.058e-05/0.5773, allocations: 8 kB / 0.5311 GB, free: 0.8906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.914e-06/0.5773, allocations: 0 / 0.5311 GB, free: 0.8906 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.5776, allocations: 59 kB / 0.5311 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.5776, allocations: 8 kB / 0.5311 GB, free: 0.8281 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.0002314/0.5779, allocations: 199.9 kB / 0.5313 GB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.904e-05/0.5779, allocations: 19.81 kB / 0.5314 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.04e-05/0.578, allocations: 21.2 kB / 0.5314 GB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.578, allocations: 0 / 0.5314 GB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.578, allocations: 7.938 kB / 0.5314 GB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.578, allocations: 3.938 kB / 0.5314 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002318/0.5782, allocations: 264.1 kB / 0.5316 GB, free: 300 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.5782, allocations: 0 / 0.5316 GB, free: 300 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-05/0.5783, allocations: 4.047 kB / 0.5316 GB, free: 296 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.5783, allocations: 3.984 kB / 0.5316 GB, free: 292 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.84e-05/0.5783, allocations: 11.98 kB / 0.5317 GB, free: 280 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.5783, allocations: 80 / 0.5317 GB, free: 280 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5783, allocations: 3.984 kB / 0.5317 GB, free: 276 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005493/0.5789, allocations: 370.1 kB / 0.532 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.579, allocations: 128.8 kB / 0.5321 GB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.996e-05/0.5791, allocations: 17.31 kB / 0.5322 GB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.5794, allocations: 51.94 kB / 0.5322 GB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.633e-05/0.5794, allocations: 36.89 kB / 0.5322 GB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.942e-05/0.5795, allocations: 8 kB / 0.5322 GB, free: 15.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000127/0.5796, allocations: 150.7 kB / 0.5324 GB, free: 15.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5796, allocations: 0 / 0.5324 GB, free: 15.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003445/0.58, allocations: 70.8 kB / 0.5325 GB, free: 15.52 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.0009334/0.5809, allocations: 0.9308 MB / 0.5334 GB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005991/0.5815, allocations: 369.6 kB / 0.5337 GB, free: 14.35 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5815, allocations: 0 / 0.5337 GB, free: 14.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003444/0.5819, allocations: 398.5 kB / 0.5341 GB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001932/0.5821, allocations: 16.98 kB / 0.5341 GB, free: 14.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000643/0.5827, allocations: 285.8 kB / 0.5344 GB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.5831, allocations: 0.7277 MB / 0.5351 GB, free: 13.06 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.203e-05/0.5831, allocations: 4.438 kB / 0.5351 GB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.53e-05/0.5832, allocations: 36.48 kB / 0.5351 GB, free: 13.04 MB / 362.7 MB Notification: Performance of SimCode: time 3.587e-06/0.5832, allocations: 0 / 0.5351 GB, free: 13.04 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01582/0.599, allocations: 4.207 MB / 0.5392 GB, free: 8.957 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001878/0.5992, allocations: 129.6 kB / 0.5394 GB, free: 8.734 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/2.328, allocations: 7.938 kB / 0.5394 GB, free: 8.727 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)