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.001704/0.001704, allocations: 105.6 kB / 16.45 MB, free: 6.438 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.001765/0.001765, allocations: 189.5 kB / 17.39 MB, free: 5.668 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.336/1.336, allocations: 222.9 MB / 241.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04976/0.04976, allocations: 8.097 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001138, allocations: 63.91 kB / 413.9 MB, free: 22.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09359/0.09474, allocations: 51.53 MB / 465.5 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation2): time 0.002531/0.09731, allocations: 1.628 MB / 467.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009933/0.09832, allocations: 0.6196 MB / 467.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.406e-05/0.0984, allocations: 0 / 467.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.09853, allocations: 23.84 kB / 467.7 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.09871, allocations: 35.77 kB / 467.8 MB, free: 484 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004223/0.09914, allocations: 119.7 kB / 467.9 MB, free: 364 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002524/0.0994, allocations: 191.6 kB / 468.1 MB, free: 172 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.511e-05/0.0995, allocations: 9.109 kB / 468.1 MB, free: 164 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.09965, allocations: 79.69 kB / 468.2 MB, free: 84 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.09983, allocations: 83.72 kB / 468.2 MB, free: 0 / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.595e-05/0.09988, allocations: 12.05 kB / 468.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.1, allocations: 91.86 kB / 468.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.666e-05/0.1001, allocations: 31.84 kB / 468.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.332e-05/0.1002, allocations: 71.66 kB / 468.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.1005, allocations: 186.3 kB / 468.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1005, allocations: 3.984 kB / 468.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1005, allocations: 0 / 468.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.1005, allocations: 0 / 468.6 MB, free: 15.61 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.0006886/0.1012, allocations: 0.4951 MB / 469.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.1012, allocations: 11.89 kB / 469.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.619e-05/0.1013, allocations: 46.73 kB / 469.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.096e-05/0.1013, allocations: 16.75 kB / 469.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.1016, allocations: 228 kB / 469.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.1017, allocations: 4.375 kB / 469.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.111e-05/0.1017, allocations: 12.12 kB / 469.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.102, allocations: 133.6 kB / 469.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.102, allocations: 4 kB / 469.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.1021, allocations: 4 kB / 469.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.1021, allocations: 3.938 kB / 469.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001975/0.1023, allocations: 75.89 kB / 469.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005783/0.1029, allocations: 388.5 kB / 470 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.1031, allocations: 114.5 kB / 470.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.1033, allocations: 108.9 kB / 470.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.989e-06/0.1033, allocations: 0 / 470.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004088/0.1038, allocations: 328.7 kB / 470.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.583e-06/0.1038, allocations: 0 / 470.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0007789/0.1046, allocations: 388.6 kB / 471 MB, free: 13.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.1047, allocations: 221.6 kB / 471.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.1049, allocations: 199.6 kB / 471.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.1049, allocations: 29.69 kB / 471.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.438e-05/0.105, allocations: 108.1 kB / 471.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.533e-05/0.105, allocations: 43.58 kB / 471.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.369e-05/0.1051, allocations: 37.7 kB / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1052, allocations: 334.8 kB / 471.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.481e-05/0.1053, allocations: 51.98 kB / 472 MB, free: 11.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.598e-05/0.1054, allocations: 69.69 kB / 472 MB, free: 11.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004789/0.1059, allocations: 455.4 kB / 472.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1059, allocations: 0 / 472.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003403/0.1062, allocations: 280.7 kB / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.93e-05/0.1063, allocations: 71.39 kB / 472.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1063, allocations: 80 / 472.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.1063, allocations: 0 / 472.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.495e-05/0.1064, allocations: 11.98 kB / 472.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.1064, allocations: 7.984 kB / 472.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.1067, allocations: 47.89 kB / 472.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.1067, allocations: 4 kB / 472.9 MB, free: 10.96 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.0002182/0.1069, allocations: 236.7 kB / 473.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.033e-05/0.107, allocations: 23.81 kB / 473.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.582e-05/0.107, allocations: 13.88 kB / 473.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.107, allocations: 4 kB / 473.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.107, allocations: 0 / 473.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.107, allocations: 3.984 kB / 473.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001971/0.1072, allocations: 257.4 kB / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1072, allocations: 3.938 kB / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.22e-05/0.1073, allocations: 4 kB / 473.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.1073, allocations: 7.984 kB / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.1073, allocations: 8 kB / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1073, allocations: 0 / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1073, allocations: 0 / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000636/0.108, allocations: 400 kB / 473.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.1081, allocations: 120.9 kB / 473.9 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.916e-05/0.1081, allocations: 15.94 kB / 474 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002615/0.1084, allocations: 47.94 kB / 474 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.96e-05/0.1085, allocations: 19.97 kB / 474 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.72e-05/0.1085, allocations: 8 kB / 474 MB, free: 9.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000118/0.1086, allocations: 155.5 kB / 474.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1086, allocations: 0 / 474.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000277/0.1089, allocations: 72.05 kB / 474.3 MB, free: 9.465 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.0009773/0.1099, allocations: 0.9624 MB / 475.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005082/0.1104, allocations: 398.5 kB / 475.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1104, allocations: 0 / 475.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003925/0.1108, allocations: 410.7 kB / 476 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.1111, allocations: 16 kB / 476 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002441/0.1135, allocations: 2.279 MB / 478.3 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.1138, allocations: 0.716 MB / 479 MB, free: 4.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.105e-05/0.1139, allocations: 16.42 kB / 479 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.853e-05/0.1139, allocations: 43.42 kB / 479.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1139, allocations: 0 / 479.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02261/0.1366, allocations: 5.039 MB / 484.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.139/7.276, allocations: 11.94 kB / 484.1 MB, free: 15.46 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)