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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009773/0.0009773, allocations: 184.6 kB / 7.845 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.125/1.125, allocations: 221.4 MB / 229.6 MB, free: 3.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009746/0.0009746, allocations: 89.06 kB / 280.5 MB, free: 1.223 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03602/0.03602, allocations: 8.095 MB / 339.4 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.174/0.2101, allocations: 58.61 MB / 398 MB, free: 67.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07432/0.2844, allocations: 52.52 MB / 450.5 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2254/0.5098, allocations: 77.85 MB / 0.516 GB, free: 180 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001654/0.5101, allocations: 56.22 kB / 0.516 GB, free: 152 kB / 330.7 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.0112/0.5213, allocations: 3.779 MB / 0.5197 GB, free: 12.86 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.5213, allocations: 11.94 kB / 0.5197 GB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.456e-05/0.5214, allocations: 15.81 kB / 0.5197 GB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.5217, allocations: 241 kB / 0.52 GB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.5218, allocations: 8 kB / 0.52 GB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.5218, allocations: 4 kB / 0.52 GB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001261/0.5219, allocations: 49.11 kB / 0.52 GB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.5221, allocations: 118.4 kB / 0.5201 GB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-06/0.5221, allocations: 0 / 0.5201 GB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.5222, allocations: 4 kB / 0.5201 GB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.5222, allocations: 0 / 0.5201 GB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004775/0.5226, allocations: 340.1 kB / 0.5205 GB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001197/0.5228, allocations: 104.4 kB / 0.5206 GB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.5229, allocations: 89.88 kB / 0.5207 GB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.092e-05/0.5229, allocations: 7.906 kB / 0.5207 GB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/0.5232, allocations: 284.1 kB / 0.5209 GB, free: 11.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.453e-06/0.5232, allocations: 0 / 0.5209 GB, free: 11.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003846/0.5236, allocations: 181.7 kB / 0.5211 GB, free: 11.53 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.5237, allocations: 222.8 kB / 0.5213 GB, free: 11.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/0.5239, allocations: 179.6 kB / 0.5215 GB, free: 11.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.5239, allocations: 29.7 kB / 0.5215 GB, free: 11.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.05e-05/0.524, allocations: 91.06 kB / 0.5216 GB, free: 10.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.34e-05/0.524, allocations: 46.47 kB / 0.5217 GB, free: 10.94 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.918e-06/0.524, allocations: 0 / 0.5217 GB, free: 10.94 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.5242, allocations: 330.3 kB / 0.522 GB, free: 10.62 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.071e-05/0.5243, allocations: 47.02 kB / 0.522 GB, free: 10.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.835e-05/0.5244, allocations: 76.41 kB / 0.5221 GB, free: 10.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.5245, allocations: 51.47 kB / 0.5221 GB, free: 10.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5245, allocations: 0 / 0.5221 GB, free: 10.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002908/0.5248, allocations: 190.9 kB / 0.5223 GB, free: 10.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.5248, allocations: 8 kB / 0.5223 GB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.5248, allocations: 0 / 0.5223 GB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.5248, allocations: 0 / 0.5223 GB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.963e-05/0.5249, allocations: 12 kB / 0.5223 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.5249, allocations: 3.938 kB / 0.5223 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002687/0.5252, allocations: 59.89 kB / 0.5224 GB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.5252, allocations: 4 kB / 0.5224 GB, free: 10.26 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: tapChanger.furtherTapChangeTimeout:DISCRETE(start = tapChanger.nextTapChangeTimeout unit = "s" fixed = false protected = true ) "Time lag between the first change and the following tap" type: Real tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = false protected = true ) "Time when the signal U went out its normal range" type: Real tapChanger.tap:DISCRETE(start = tapChanger.startTap fixed = false ) "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 () * 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.0002318/0.5255, allocations: 194.7 kB / 0.5226 GB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.5255, allocations: 19.81 kB / 0.5226 GB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.715e-05/0.5256, allocations: 25.39 kB / 0.5226 GB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.5256, allocations: 3.906 kB / 0.5226 GB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.5256, allocations: 0 / 0.5226 GB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.5256, allocations: 0 / 0.5226 GB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001958/0.5258, allocations: 229.9 kB / 0.5229 GB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5258, allocations: 0 / 0.5229 GB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.611e-05/0.5259, allocations: 11.89 kB / 0.5229 GB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.5259, allocations: 0 / 0.5229 GB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/0.5259, allocations: 14.88 kB / 0.5229 GB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.5259, allocations: 0 / 0.5229 GB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5259, allocations: 0 / 0.5229 GB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003888/0.5263, allocations: 253 kB / 0.5231 GB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000498/0.5268, allocations: 0.6149 MB / 0.5237 GB, free: 8.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/0.527, allocations: 132.4 kB / 0.5238 GB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.523e-05/0.5271, allocations: 12 kB / 0.5239 GB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.5274, allocations: 63.83 kB / 0.5239 GB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.53e-05/0.5275, allocations: 23.89 kB / 0.5239 GB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.349e-05/0.5275, allocations: 11.06 kB / 0.524 GB, free: 8.715 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001151/0.5276, allocations: 143.4 kB / 0.5241 GB, free: 8.594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008611/0.5285, allocations: 64.11 kB / 0.5241 GB, free: 8.531 MB / 346.7 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) * 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.0002224/0.5287, allocations: 158.1 kB / 0.5243 GB, free: 8.371 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002999/0.529, allocations: 228.4 kB / 0.5245 GB, free: 8.207 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5291, allocations: 0 / 0.5245 GB, free: 8.207 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002735/0.5293, allocations: 327.1 kB / 0.5248 GB, free: 8.047 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001834/0.5295, allocations: 23.7 kB / 0.5249 GB, free: 8.027 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004883/0.53, allocations: 208.5 kB / 0.5251 GB, free: 7.828 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003521/0.5304, allocations: 0.7402 MB / 0.5258 GB, free: 7.062 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5304, allocations: 0 / 0.5258 GB, free: 7.062 MB / 346.7 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)