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.0008663/0.0008663, allocations: 97.25 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 182.5 kB / 16.96 MB, free: 6.895 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.307/1.307, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1632/0.1632, allocations: 8.09 MB / 300.2 MB, free: 2.945 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003116, allocations: 8 kB / 363.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08918/0.08952, allocations: 52.51 MB / 416.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation2): time 0.001741/0.0913, allocations: 1.352 MB / 417.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.09243, allocations: 0.6432 MB / 418.1 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.07e-05/0.09253, allocations: 0 / 418.1 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001072/0.09264, allocations: 19.91 kB / 418.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.09282, allocations: 39.83 kB / 418.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003298/0.09316, allocations: 87.83 kB / 418.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000178/0.09335, allocations: 151.6 kB / 418.4 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.355e-05/0.09344, allocations: 13.12 kB / 418.4 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.09357, allocations: 71.75 kB / 418.5 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.09372, allocations: 75.72 kB / 418.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.09376, allocations: 8 kB / 418.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.09391, allocations: 79.86 kB / 418.6 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.119e-05/0.09398, allocations: 23.92 kB / 418.7 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.947e-05/0.09408, allocations: 93.34 kB / 418.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.09432, allocations: 179.7 kB / 418.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.09434, allocations: 0 / 418.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.09434, allocations: 0 / 418.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.09435, allocations: 0 / 418.9 MB, free: 5.477 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.0005728/0.09493, allocations: 476.4 kB / 419.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.09497, allocations: 16.03 kB / 419.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.655e-05/0.09503, allocations: 46.67 kB / 419.4 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.335e-05/0.09509, allocations: 16.75 kB / 419.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.09533, allocations: 232 kB / 419.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.09535, allocations: 4.375 kB / 419.7 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.426e-05/0.09538, allocations: 12.12 kB / 419.7 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003111/0.0957, allocations: 133.5 kB / 419.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.09572, allocations: 3.984 kB / 419.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.09574, allocations: 4 kB / 419.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.09575, allocations: 0 / 419.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002021/0.09596, allocations: 79.89 kB / 419.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005729/0.09654, allocations: 400.6 kB / 420.3 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.09677, allocations: 118.5 kB / 420.4 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.09699, allocations: 104.9 kB / 420.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.747e-06/0.097, allocations: 0 / 420.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004157/0.09743, allocations: 331.7 kB / 420.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.272e-06/0.09744, allocations: 0 / 420.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0008225/0.09827, allocations: 392.6 kB / 421.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001985/0.09848, allocations: 221.6 kB / 421.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.09867, allocations: 198.4 kB / 421.7 MB, free: 2.453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.09871, allocations: 29.7 kB / 421.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.967e-05/0.09878, allocations: 104.1 kB / 421.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.187e-05/0.09884, allocations: 47.58 kB / 421.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.939e-05/0.09889, allocations: 25.7 kB / 421.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.09902, allocations: 330.8 kB / 422.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.657e-05/0.09913, allocations: 55.97 kB / 422.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.09929, allocations: 73.69 kB / 422.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004779/0.09977, allocations: 459.1 kB / 422.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.09978, allocations: 0 / 422.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000339/0.1001, allocations: 273.8 kB / 423 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.017e-05/0.1002, allocations: 67.39 kB / 423.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1002, allocations: 0 / 423.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.1002, allocations: 0 / 423.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.932e-05/0.1003, allocations: 11.94 kB / 423.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.1003, allocations: 8.031 kB / 423.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.1006, allocations: 51.95 kB / 423.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.1006, allocations: 8.062 kB / 423.2 MB, free: 0.832 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.0002219/0.1008, allocations: 234 kB / 423.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.906e-05/0.1009, allocations: 23.81 kB / 423.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.666e-05/0.1009, allocations: 13.86 kB / 423.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1009, allocations: 4 kB / 423.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1009, allocations: 0 / 423.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1009, allocations: 0 / 423.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.1011, allocations: 273.3 kB / 423.7 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1011, allocations: 0 / 423.7 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.075e-05/0.1012, allocations: 4 kB / 423.7 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.1012, allocations: 0 / 423.7 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/0.1012, allocations: 15.98 kB / 423.7 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1012, allocations: 3.938 kB / 423.7 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1012, allocations: 0 / 423.7 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007129/0.1019, allocations: 396.2 kB / 424.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.1021, allocations: 124.9 kB / 424.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.09e-05/0.1022, allocations: 16 kB / 424.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.1024, allocations: 51.95 kB / 424.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.729e-05/0.1025, allocations: 23.97 kB / 424.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.89e-05/0.1025, allocations: 15.98 kB / 424.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001187/0.1027, allocations: 147.2 kB / 424.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1027, allocations: 0 / 424.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.1029, allocations: 68.06 kB / 424.5 MB, free: 15.32 MB / 366.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.0009548/0.1039, allocations: 0.9658 MB / 425.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004943/0.1044, allocations: 390.6 kB / 425.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1044, allocations: 4 kB / 425.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004098/0.1048, allocations: 406.8 kB / 426.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.1051, allocations: 27.92 kB / 426.3 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/0.1076, allocations: 2.291 MB / 428.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.1079, allocations: 0.7201 MB / 429.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.691e-05/0.108, allocations: 8.422 kB / 429.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.817e-05/0.108, allocations: 43.42 kB / 429.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.108, allocations: 4 kB / 429.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0137/0.1217, allocations: 4.21 MB / 433.6 MB, free: 6.164 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002712/0.122, allocations: 181.9 kB / 433.8 MB, free: 5.906 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/1.786, allocations: 4.062 kB / 433.8 MB, free: 5.902 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)