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.00148/0.00148, allocations: 105.9 kB / 16.45 MB, free: 6.035 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.001647/0.001647, allocations: 191.2 kB / 17.39 MB, free: 5.559 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.254/1.254, 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.04441/0.04441, allocations: 8.096 MB / 299.3 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 67.91 kB / 414 MB, free: 22.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08256/0.08372, allocations: 51.51 MB / 465.5 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation2): time 0.002599/0.08637, allocations: 1.636 MB / 467.1 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009963/0.08739, allocations: 0.6157 MB / 467.7 MB, free: 464 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.256e-05/0.08749, allocations: 4 kB / 467.7 MB, free: 460 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.08761, allocations: 23.84 kB / 467.7 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.08777, allocations: 43.77 kB / 467.8 MB, free: 392 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003572/0.08813, allocations: 107.7 kB / 467.9 MB, free: 284 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002182/0.08836, allocations: 199.5 kB / 468.1 MB, free: 84 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.292e-05/0.08845, allocations: 17.11 kB / 468.1 MB, free: 68 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.08857, allocations: 75.83 kB / 468.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.08873, allocations: 83.58 kB / 468.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.848e-05/0.08876, allocations: 16 kB / 468.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.08889, allocations: 83.92 kB / 468.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.237e-05/0.08896, allocations: 23.91 kB / 468.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.637e-05/0.08906, allocations: 75.64 kB / 468.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002482/0.08931, allocations: 191.5 kB / 468.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.08933, allocations: 7.984 kB / 468.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.08933, allocations: 0 / 468.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.08934, allocations: 0 / 468.7 MB, free: 15.52 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.0006258/0.08997, allocations: 0.4941 MB / 469.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.09002, allocations: 11.89 kB / 469.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.545e-05/0.09007, allocations: 42.73 kB / 469.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.025e-05/0.09012, allocations: 24.84 kB / 469.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.09043, allocations: 224.2 kB / 469.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.09046, allocations: 4.375 kB / 469.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/0.09049, allocations: 8.125 kB / 469.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/0.0908, allocations: 140.8 kB / 469.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.09082, allocations: 0 / 469.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.09084, allocations: 4 kB / 469.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.09085, allocations: 0 / 469.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.09105, allocations: 71.95 kB / 469.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000557/0.09161, allocations: 400.5 kB / 470.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.09185, allocations: 114.5 kB / 470.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001959/0.09206, allocations: 112.8 kB / 470.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.457e-06/0.09207, allocations: 0 / 470.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003989/0.09248, allocations: 330.4 kB / 470.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.192e-06/0.09249, allocations: 0 / 470.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0007662/0.09326, allocations: 384.7 kB / 471 MB, free: 12.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.09338, allocations: 225.5 kB / 471.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.09356, allocations: 199.6 kB / 471.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.0936, allocations: 37.69 kB / 471.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.848e-05/0.09366, allocations: 96.14 kB / 471.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.288e-05/0.09371, allocations: 47.81 kB / 471.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.288e-05/0.09378, allocations: 41.7 kB / 471.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.0939, allocations: 330.8 kB / 471.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.511e-05/0.09399, allocations: 51.98 kB / 472 MB, free: 11.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.607e-05/0.09409, allocations: 69.69 kB / 472.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004993/0.0946, allocations: 461 kB / 472.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.09461, allocations: 0 / 472.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003353/0.09495, allocations: 272.8 kB / 472.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/0.09501, allocations: 75.42 kB / 472.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.09502, allocations: 0 / 472.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.09504, allocations: 0 / 472.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.515e-05/0.09511, allocations: 11.98 kB / 472.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.09512, allocations: 0 / 472.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.09538, allocations: 51.91 kB / 472.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/0.09541, allocations: 8 kB / 472.9 MB, free: 10.86 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.0002193/0.09563, allocations: 224.8 kB / 473.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.969e-05/0.09568, allocations: 19.91 kB / 473.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.669e-05/0.09571, allocations: 13.88 kB / 473.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.09572, allocations: 0 / 473.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.09573, allocations: 0 / 473.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.09575, allocations: 11.98 kB / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001944/0.09594, allocations: 261.3 kB / 473.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.09595, allocations: 0 / 473.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.198e-05/0.09598, allocations: 8 kB / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.09599, allocations: 3.984 kB / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.09602, allocations: 15.98 kB / 473.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.09602, allocations: 0 / 473.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.09603, allocations: 0 / 473.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006127/0.09665, allocations: 394.5 kB / 473.8 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.09676, allocations: 120.9 kB / 474 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.819e-05/0.09683, allocations: 16 kB / 474 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.09709, allocations: 43.94 kB / 474 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.683e-05/0.09717, allocations: 27.91 kB / 474.1 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.23e-05/0.09721, allocations: 12 kB / 474.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001108/0.09732, allocations: 147.5 kB / 474.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09733, allocations: 4 kB / 474.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002731/0.09761, allocations: 75.81 kB / 474.3 MB, free: 9.363 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.0009751/0.09859, allocations: 0.9597 MB / 475.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005021/0.0991, allocations: 389.1 kB / 475.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.09912, allocations: 4 kB / 475.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004005/0.09952, allocations: 418.7 kB / 476 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002241/0.09976, allocations: 23.94 kB / 476.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/0.1021, allocations: 2.277 MB / 478.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.1024, allocations: 0.7121 MB / 479 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.229e-05/0.1025, allocations: 20.41 kB / 479.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.657e-05/0.1025, allocations: 39.42 kB / 479.1 MB, free: 4.328 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1025, allocations: 0 / 479.1 MB, free: 4.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02257/0.1251, allocations: 4.876 MB / 484 MB, free: 15.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.355/7.48, allocations: 19.81 kB / 484 MB, free: 15.51 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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Tests.VoltageRegulation2_res.csv --start-time 0 --stop-time 350 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.14 PowerSysPro_PowerSysPro_Tests_VoltageRegulation2.fmu > PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.pipe 2>&1)