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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.003783/0.003783, allocations: 92.27 kB / 15.91 MB, free: 6.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009757/0.0009758, allocations: 192.6 kB / 16.83 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.235/1.235, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1264/0.1264, allocations: 8.088 MB / 298.7 MB, free: 2.062 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 67.89 kB / 361.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06954/0.07063, allocations: 51.52 MB / 412.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation2): time 0.002117/0.07278, allocations: 1.695 MB / 414.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008424/0.07363, allocations: 0.647 MB / 415 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.704e-05/0.07369, allocations: 4 kB / 415 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.41e-05/0.07379, allocations: 19.91 kB / 415 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.07392, allocations: 39.83 kB / 415.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/0.07416, allocations: 83.83 kB / 415.1 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001323/0.0743, allocations: 159.5 kB / 415.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.861e-05/0.07438, allocations: 13.12 kB / 415.3 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.323e-05/0.07447, allocations: 71.75 kB / 415.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.07459, allocations: 75.72 kB / 415.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.07462, allocations: 8 kB / 415.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.07474, allocations: 79.92 kB / 415.5 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.089e-05/0.07479, allocations: 19.92 kB / 415.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.157e-05/0.07488, allocations: 71.58 kB / 415.6 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.07507, allocations: 183.7 kB / 415.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.07508, allocations: 0 / 415.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.07509, allocations: 0 / 415.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.0751, allocations: 0 / 415.8 MB, free: 6.887 MB / 350.1 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.0005283/0.07563, allocations: 0.5021 MB / 416.3 MB, free: 6.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.901e-05/0.07567, allocations: 8.031 kB / 416.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.538e-05/0.07571, allocations: 34.75 kB / 416.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.597e-05/0.07576, allocations: 20.75 kB / 416.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001949/0.07596, allocations: 224.1 kB / 416.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.07598, allocations: 4.375 kB / 416.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.076, allocations: 16.05 kB / 416.6 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002801/0.07629, allocations: 137.5 kB / 416.7 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-06/0.0763, allocations: 3.938 kB / 416.7 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.07633, allocations: 7.984 kB / 416.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.07634, allocations: 7.984 kB / 416.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001785/0.07652, allocations: 67.95 kB / 416.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004592/0.07698, allocations: 380.6 kB / 417.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.0772, allocations: 126.5 kB / 417.3 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.07739, allocations: 104.9 kB / 417.4 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-06/0.0774, allocations: 0 / 417.4 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003644/0.07777, allocations: 325.5 kB / 417.7 MB, free: 4.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.202e-06/0.07778, allocations: 0 / 417.7 MB, free: 4.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0007066/0.07849, allocations: 391.5 kB / 418.1 MB, free: 4.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.725e-05/0.07858, allocations: 221.6 kB / 418.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.07874, allocations: 202.3 kB / 418.5 MB, free: 3.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.07876, allocations: 33.7 kB / 418.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/0.07881, allocations: 104.1 kB / 418.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.827e-05/0.07886, allocations: 47.52 kB / 418.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.96e-05/0.07892, allocations: 37.7 kB / 418.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.029e-05/0.07901, allocations: 330.8 kB / 419.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.823e-05/0.07909, allocations: 47.98 kB / 419.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.388e-05/0.07919, allocations: 81.67 kB / 419.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004202/0.07961, allocations: 456.6 kB / 419.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.07963, allocations: 0 / 419.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002986/0.07993, allocations: 269.6 kB / 419.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.828e-05/0.07998, allocations: 67.38 kB / 420 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-06/0.07999, allocations: 4 kB / 420 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.584e-06/0.08, allocations: 0 / 420 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.557e-05/0.08006, allocations: 12 kB / 420 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.08007, allocations: 0 / 420 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.0803, allocations: 43.98 kB / 420 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.08033, allocations: 8 kB / 420.1 MB, free: 2.238 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: tapChanger.tap:DISCRETE(start = tapChanger.startTap fixed = true ) "Current tap position" type: Integer tapChanger.furtherTapChangeTimeout:DISCRETE(start = tapChanger.nextTapChangeTimeout unit = "s" fixed = true protected = true ) "Time lag between the first change and the following tap" type: Real tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" 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: 20 ($PRE.tapChanger.tap,$PRE.tapChanger.furtherTapChangeTimeout,$PRE.tapChanger.abnormalUTime,tapChanger.furtherTapChangeTimeout,tapChanger.increaseEvent,tapChanger.decreaseEvent,tapChanger.normalU,tapChanger.abnormalUTime,tapChanger.tap,voltage.nextEventScaled,voltage.nextEvent,$PRE.voltage.nextEvent,voltage.last,voltage.b,voltage.a,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001743/0.08051, allocations: 231.9 kB / 420.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.08055, allocations: 15.91 kB / 420.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.355e-05/0.08058, allocations: 17.86 kB / 420.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.08059, allocations: 0 / 420.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.0806, allocations: 0 / 420.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.0806, allocations: 11.88 kB / 420.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.08077, allocations: 261.3 kB / 420.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.08077, allocations: 0 / 420.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.022e-05/0.0808, allocations: 4 kB / 420.6 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.0808, allocations: 0 / 420.6 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.08083, allocations: 19.98 kB / 420.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.08084, allocations: 0 / 420.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.08084, allocations: 0 / 420.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005611/0.08141, allocations: 398.2 kB / 421 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.18e-05/0.08151, allocations: 117 kB / 421.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.06e-05/0.08157, allocations: 16 kB / 421.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.08181, allocations: 51.94 kB / 421.2 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.039e-05/0.08187, allocations: 23.91 kB / 421.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.754e-05/0.08191, allocations: 15.98 kB / 421.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.917e-05/0.08201, allocations: 143.2 kB / 421.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08202, allocations: 0 / 421.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002469/0.08227, allocations: 68.06 kB / 421.4 MB, free: 0.75 MB / 350.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008225/0.0831, allocations: 0.9596 MB / 422.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004299/0.08354, allocations: 390.5 kB / 422.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.08355, allocations: 0 / 422.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003448/0.0839, allocations: 406.8 kB / 423.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.0841, allocations: 23.98 kB / 423.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/0.08618, allocations: 2.297 MB / 425.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.0864, allocations: 0.724 MB / 426.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.256e-05/0.08644, allocations: 8.422 kB / 426.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.73e-05/0.08649, allocations: 39.42 kB / 426.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.0865, allocations: 0 / 426.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.636/0.7225, allocations: 4.289 MB / 430.5 MB, free: 7.5 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/0.7228, allocations: 190.3 kB / 430.7 MB, free: 7.238 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.594/2.317, allocations: 0 / 430.7 MB, free: 7.238 MB / 366.1 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/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)