Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.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.VoltageRegulation1,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_VoltageRegulation1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Tests.VoltageRegulation1,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_VoltageRegulation1",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.003693/0.003693, allocations: 93.62 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.0009888/0.0009888, allocations: 197.4 kB / 16.84 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.232/1.232, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1235/0.1235, allocations: 8.09 MB / 298.7 MB, free: 2.07 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 56.05 kB / 361.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07514/0.07623, allocations: 51.53 MB / 412.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation1): time 0.002561/0.07883, allocations: 1.696 MB / 414.4 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.07985, allocations: 0.6509 MB / 415 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.84e-05/0.07993, allocations: 4 kB / 415 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.08011, allocations: 123.7 kB / 415.1 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001967/0.08032, allocations: 131.7 kB / 415.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.08062, allocations: 83.84 kB / 415.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001767/0.08081, allocations: 203.5 kB / 415.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.295e-05/0.08089, allocations: 9.109 kB / 415.5 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.08103, allocations: 107.7 kB / 415.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.08125, allocations: 187.6 kB / 415.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.052e-05/0.08129, allocations: 4 kB / 415.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.08142, allocations: 83.86 kB / 415.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.08153, allocations: 107.6 kB / 416 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.08166, allocations: 135 kB / 416.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00029/0.08196, allocations: 311.2 kB / 416.5 MB, free: 6.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.08197, allocations: 4 kB / 416.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.08198, allocations: 0 / 416.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.289e-06/0.08199, allocations: 0 / 416.5 MB, free: 6.262 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.0007919/0.08278, allocations: 0.6996 MB / 417.2 MB, free: 5.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.08283, allocations: 12.03 kB / 417.2 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.804e-05/0.08287, allocations: 38.75 kB / 417.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.698e-05/0.08294, allocations: 44.38 kB / 417.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/0.08332, allocations: 382 kB / 417.6 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.08334, allocations: 4.375 kB / 417.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.337e-05/0.08337, allocations: 8.125 kB / 417.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003291/0.0837, allocations: 169.6 kB / 417.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.08372, allocations: 4 kB / 417.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.08374, allocations: 4 kB / 417.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.08375, allocations: 0 / 417.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002139/0.08397, allocations: 107.9 kB / 417.9 MB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006113/0.08459, allocations: 0.5081 MB / 418.4 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.08484, allocations: 158.5 kB / 418.6 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000223/0.08507, allocations: 152.8 kB / 418.7 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.794e-06/0.08509, allocations: 0 / 418.7 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004318/0.08552, allocations: 371.7 kB / 419.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.283e-06/0.08553, allocations: 3.938 kB / 419.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0008872/0.08643, allocations: 0.5651 MB / 419.7 MB, free: 2.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.027e-05/0.08653, allocations: 221.6 kB / 419.9 MB, free: 2.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005137/0.08705, allocations: 0.5565 MB / 420.4 MB, free: 1.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.08708, allocations: 33.7 kB / 420.5 MB, free: 1.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.0872, allocations: 192.2 kB / 420.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.08725, allocations: 47.36 kB / 420.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.215e-05/0.08732, allocations: 41.7 kB / 420.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.08744, allocations: 362.7 kB / 421.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.08755, allocations: 91.97 kB / 421.2 MB, free: 1.203 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.08768, allocations: 117.7 kB / 421.3 MB, free: 1.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000556/0.08825, allocations: 0.6138 MB / 421.9 MB, free: 428 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.08826, allocations: 0 / 421.9 MB, free: 428 kB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004195/0.08868, allocations: 425.4 kB / 422.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.394e-05/0.08874, allocations: 67.39 kB / 422.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.08875, allocations: 4.031 kB / 422.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.08876, allocations: 0 / 422.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.809e-05/0.08883, allocations: 15.94 kB / 422.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.08884, allocations: 0 / 422.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002678/0.08911, allocations: 51.78 kB / 422.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.08914, allocations: 8 kB / 422.5 MB, free: 15.82 MB / 366.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.000254/0.0894, allocations: 288 kB / 422.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.916e-05/0.08946, allocations: 47.44 kB / 422.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.08951, allocations: 43.92 kB / 422.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.08952, allocations: 4.031 kB / 422.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.08953, allocations: 0 / 422.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.08953, allocations: 0 / 422.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.08978, allocations: 349.4 kB / 423.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.08979, allocations: 0 / 423.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.984e-05/0.08981, allocations: 4 kB / 423.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.08982, allocations: 0 / 423.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.08985, allocations: 19.89 kB / 423.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.08985, allocations: 0 / 423.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.08986, allocations: 0 / 423.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007089/0.09057, allocations: 0.5408 MB / 423.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.09073, allocations: 156.6 kB / 423.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.438e-05/0.0908, allocations: 15.94 kB / 423.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002624/0.09107, allocations: 39.95 kB / 424 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.347e-05/0.09115, allocations: 23.97 kB / 424 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/0.09119, allocations: 11.98 kB / 424 MB, free: 14.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003747/0.09157, allocations: 411.1 kB / 424.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.09157, allocations: 0 / 424.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002708/0.09185, allocations: 91.86 kB / 424.5 MB, free: 13.7 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.0009917/0.09285, allocations: 1.108 MB / 425.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005149/0.09338, allocations: 474.5 kB / 426.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.09339, allocations: 0 / 426.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004035/0.0938, allocations: 458.7 kB / 426.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.09408, allocations: 31.69 kB / 426.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004797/0.09888, allocations: 4.998 MB / 431.5 MB, free: 6.473 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.09919, allocations: 0.8075 MB / 432.3 MB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.511e-05/0.09928, allocations: 45.92 kB / 432.4 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.0994, allocations: 115.4 kB / 432.5 MB, free: 5.48 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.09941, allocations: 0 / 432.5 MB, free: 5.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6543/0.7537, allocations: 7.566 MB / 440.1 MB, free: 58.05 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001416/0.7539, allocations: 174.8 kB / 440.2 MB, free: 57.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.652/2.406, allocations: 0 / 440.2 MB, free: 57.8 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe ; mkfifo PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe >> ../files/PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Tests_VoltageRegulation1_fmu --startTime=0 --stopTime=350 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Tests_VoltageRegulation1.fmu > PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe 2>&1)