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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.0007064/0.0007064, allocations: 84.19 kB / 15.75 MB, free: 416 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.0007605/0.0007605, allocations: 176.3 kB / 16.63 MB, free: 6.887 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.265/1.265, allocations: 223.2 MB / 240.7 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1491/0.1491, allocations: 8.088 MB / 299.8 MB, free: 2.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002598/0.0002599, allocations: 12 kB / 363 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08499/0.08527, allocations: 52.51 MB / 415.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation2): time 0.001523/0.08683, allocations: 1.321 MB / 416.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007884/0.08764, allocations: 0.5656 MB / 417.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.429e-05/0.0877, allocations: 0 / 417.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.375e-05/0.08781, allocations: 27.89 kB / 417.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.08795, allocations: 39.83 kB / 417.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.08821, allocations: 75.84 kB / 417.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001439/0.08837, allocations: 143.6 kB / 417.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.324e-05/0.08845, allocations: 9.125 kB / 417.6 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.088e-05/0.08855, allocations: 63.75 kB / 417.7 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.08868, allocations: 79.7 kB / 417.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.275e-05/0.08871, allocations: 8 kB / 417.8 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.08884, allocations: 75.94 kB / 417.9 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.978e-05/0.08889, allocations: 23.91 kB / 417.9 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.939e-05/0.08895, allocations: 49.58 kB / 417.9 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.08911, allocations: 128 kB / 418.1 MB, free: 6.016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.08912, allocations: 3.938 kB / 418.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.08912, allocations: 0 / 418.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.427e-06/0.08913, allocations: 0 / 418.1 MB, free: 6.012 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.000484/0.08962, allocations: 482.1 kB / 418.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.08966, allocations: 12.03 kB / 418.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.172e-05/0.08971, allocations: 38.56 kB / 418.6 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.08976, allocations: 19.77 kB / 418.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000207/0.08997, allocations: 218.9 kB / 418.8 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.08999, allocations: 4 kB / 418.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.077e-05/0.09002, allocations: 8 kB / 418.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002658/0.09029, allocations: 140.6 kB / 419 MB, free: 4.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.09031, allocations: 3.938 kB / 419 MB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.09033, allocations: 4 kB / 419 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.09034, allocations: 0 / 419 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.09052, allocations: 79.89 kB / 419.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004892/0.09102, allocations: 396.7 kB / 419.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.09122, allocations: 122.5 kB / 419.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.09141, allocations: 108.9 kB / 419.7 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.346e-06/0.09143, allocations: 0 / 419.7 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003773/0.09181, allocations: 325.8 kB / 420 MB, free: 3.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.283e-06/0.09182, allocations: 0 / 420 MB, free: 3.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006968/0.09252, allocations: 392.8 kB / 420.4 MB, free: 3.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.872e-05/0.09262, allocations: 229.5 kB / 420.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.09279, allocations: 206.2 kB / 420.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.09282, allocations: 29.7 kB / 420.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.336e-05/0.09288, allocations: 104.1 kB / 420.9 MB, free: 2.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.803e-05/0.09292, allocations: 43.58 kB / 421 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.197e-06/0.09294, allocations: 4 kB / 421 MB, free: 2.801 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.86e-05/0.09303, allocations: 326.8 kB / 421.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.051e-05/0.09312, allocations: 55.97 kB / 421.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.632e-05/0.09322, allocations: 73.69 kB / 421.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.995e-05/0.09333, allocations: 105.6 kB / 421.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.09333, allocations: 0 / 421.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003091/0.09365, allocations: 268.7 kB / 421.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.774e-05/0.09371, allocations: 75.33 kB / 421.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.09372, allocations: 0 / 421.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/0.09373, allocations: 3.984 kB / 421.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.791e-05/0.09379, allocations: 11.95 kB / 421.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.0938, allocations: 0 / 421.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002287/0.09404, allocations: 63.89 kB / 421.9 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.09407, allocations: 4 kB / 421.9 MB, free: 1.777 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: 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 tapChanger.tap:DISCRETE(start = tapChanger.startTap fixed = true ) "Current tap position" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,$PRE.voltage.nextEvent,voltage.nextEvent,voltage.nextEventScaled,$PRE.tapChanger.tap,tapChanger.tap,$PRE.tapChanger.abnormalUTime,tapChanger.abnormalUTime,tapChanger.normalU,tapChanger.decreaseEvent,tapChanger.increaseEvent,$PRE.tapChanger.furtherTapChangeTimeout,tapChanger.furtherTapChangeTimeout) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001903/0.09426, allocations: 220.1 kB / 422.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/0.0943, allocations: 23.81 kB / 422.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.71e-05/0.09434, allocations: 21.81 kB / 422.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.09434, allocations: 0 / 422.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.09435, allocations: 7.938 kB / 422.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.09436, allocations: 3.938 kB / 422.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001819/0.09455, allocations: 253.5 kB / 422.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.09456, allocations: 4 kB / 422.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.308e-05/0.09459, allocations: 7.984 kB / 422.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.09459, allocations: 3.938 kB / 422.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.09462, allocations: 8 kB / 422.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/0.09463, allocations: 4 kB / 422.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.09463, allocations: 0 / 422.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005603/0.0952, allocations: 402.6 kB / 422.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.329e-05/0.0953, allocations: 116.9 kB / 423 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.83e-05/0.09536, allocations: 20 kB / 423 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.0956, allocations: 51.94 kB / 423.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.932e-05/0.09567, allocations: 23.97 kB / 423.1 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.09571, allocations: 15.98 kB / 423.1 MB, free: 500 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001065/0.09582, allocations: 147.2 kB / 423.2 MB, free: 352 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09583, allocations: 0 / 423.2 MB, free: 352 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002522/0.09608, allocations: 60.12 kB / 423.3 MB, free: 292 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008558/0.09695, allocations: 0.9519 MB / 424.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004505/0.09741, allocations: 386.7 kB / 424.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.09742, allocations: 8 kB / 424.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003649/0.09779, allocations: 414.6 kB / 425 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.09801, allocations: 23.92 kB / 425.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.09945, allocations: 1.108 MB / 426.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.09969, allocations: 0.7278 MB / 426.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.535e-05/0.09973, allocations: 8.422 kB / 426.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.185e-05/0.09979, allocations: 43.42 kB / 427 MB, free: 12.46 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.09979, allocations: 0 / 427 MB, free: 12.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0136/0.1134, allocations: 4.225 MB / 431.2 MB, free: 8.352 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/0.1136, allocations: 174 kB / 431.4 MB, free: 8.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.609/1.723, allocations: 0 / 431.4 MB, free: 8.109 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/linux/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) Environment - environmentSimulation: