Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.QfURegulation.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.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",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.001086/0.001086, allocations: 188.3 kB / 7.847 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.27/1.27, allocations: 221.4 MB / 229.7 MB, free: 3.07 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.001024/0.001024, allocations: 88.53 kB / 280.5 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.038/0.038, allocations: 8.096 MB / 339.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1754/0.2135, allocations: 58.62 MB / 398 MB, free: 67.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08045/0.2939, allocations: 52.52 MB / 450.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2491/0.543, allocations: 81.36 MB / 0.5194 GB, free: 12.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.5433, allocations: 65.28 kB / 0.5195 GB, free: 12.75 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.02905/0.5724, allocations: 10.55 MB / 0.5298 GB, free: 4.301 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.5724, allocations: 11.94 kB / 0.5298 GB, free: 4.289 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.5725, allocations: 39.53 kB / 0.5298 GB, free: 4.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.5729, allocations: 287.9 kB / 0.5301 GB, free: 3.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/0.5732, allocations: 103.9 kB / 0.5302 GB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/0.5732, allocations: 12 kB / 0.5302 GB, free: 3.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005444/0.5738, allocations: 354.6 kB / 0.5305 GB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000808/0.5746, allocations: 0.5332 MB / 0.5311 GB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.5746, allocations: 0 / 0.5311 GB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/0.5747, allocations: 4 kB / 0.5311 GB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.5747, allocations: 9.797 kB / 0.5311 GB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002253/0.5769, allocations: 1.566 MB / 0.5326 GB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006298/0.5776, allocations: 456 kB / 0.533 GB, free: 1.586 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003366/0.5779, allocations: 254.1 kB / 0.5333 GB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.375e-05/0.578, allocations: 23.39 kB / 0.5333 GB, free: 1.414 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003333/0.5783, allocations: 239.3 kB / 0.5335 GB, free: 1.238 MB / 346.7 MB Notification: Performance of pre-optimization done (n=42): time 2.013e-06/0.5784, allocations: 0 / 0.5335 GB, free: 1.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.001165/0.5795, allocations: 0.5831 MB / 0.5341 GB, free: 0.8477 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/0.5796, allocations: 136.5 kB / 0.5342 GB, free: 0.6836 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.5798, allocations: 190.2 kB / 0.5344 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.297e-05/0.5799, allocations: 29.69 kB / 0.5344 GB, free: 496 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.656e-05/0.5799, allocations: 140.6 kB / 0.5346 GB, free: 364 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.106e-05/0.58, allocations: 97.44 kB / 0.5347 GB, free: 280 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.274e-05/0.5801, allocations: 0 / 0.5347 GB, free: 280 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.5802, allocations: 345 kB / 0.535 GB, free: 15.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002347/0.5804, allocations: 166.9 kB / 0.5352 GB, free: 15.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003068/0.5808, allocations: 282.2 kB / 0.5354 GB, free: 15.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005325/0.5813, allocations: 226.3 kB / 0.5356 GB, free: 15.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.5813, allocations: 0 / 0.5356 GB, free: 15.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001449/0.5828, allocations: 0.6368 MB / 0.5363 GB, free: 15.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.5828, allocations: 4 kB / 0.5363 GB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.5828, allocations: 7.984 kB / 0.5363 GB, free: 15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001955/0.5848, allocations: 389.3 kB / 0.5366 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.5851, allocations: 82.89 kB / 0.5367 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/0.5868, allocations: 0.9671 MB / 0.5377 GB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003708/0.5872, allocations: 39.58 kB / 0.5377 GB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.43e-05/0.5873, allocations: 19.5 kB / 0.5377 GB, free: 13.71 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: varLoad.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.varLoad.degradedMode,varLoad.degradedMode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002148/0.5875, allocations: 123 kB / 0.5378 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002534/0.5878, allocations: 169.2 kB / 0.538 GB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001146/0.5889, allocations: 0.5372 MB / 0.5385 GB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.5889, allocations: 4 kB / 0.5385 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.5889, allocations: 7.984 kB / 0.5385 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.589, allocations: 4 kB / 0.5385 GB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004538/0.5894, allocations: 462.3 kB / 0.539 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5894, allocations: 0 / 0.539 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004189/0.5899, allocations: 99.88 kB / 0.5391 GB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001844/0.5917, allocations: 407.9 kB / 0.5395 GB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.5918, allocations: 0 / 0.5395 GB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.5933, allocations: 0.9681 MB / 0.5404 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.5934, allocations: 0 / 0.5404 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001136/0.5945, allocations: 0.6627 MB / 0.5411 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001209/0.5957, allocations: 1.049 MB / 0.5421 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.268e-05/0.5958, allocations: 111.9 kB / 0.5422 GB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.243e-05/0.5959, allocations: 7.906 kB / 0.5422 GB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004194/0.5963, allocations: 43.95 kB / 0.5422 GB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.836e-05/0.5964, allocations: 23.16 kB / 0.5423 GB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.031e-05/0.5965, allocations: 15.19 kB / 0.5423 GB, free: 9.875 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001198/0.5966, allocations: 154.7 kB / 0.5424 GB, free: 9.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009521/0.5975, allocations: 91.22 kB / 0.5425 GB, free: 9.664 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,varLoad.degradedMode) * Number of discrete states: 1 (varLoad.degradedMode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002041/0.5978, allocations: 126.4 kB / 0.5426 GB, free: 9.535 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.5992, allocations: 0.5497 MB / 0.5432 GB, free: 9.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5992, allocations: 0.9375 kB / 0.5432 GB, free: 9.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.6003, allocations: 303.7 kB / 0.5435 GB, free: 8.941 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003795/0.6007, allocations: 99.2 kB / 0.5436 GB, free: 8.871 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.6027, allocations: 0.5867 MB / 0.5441 GB, free: 8.348 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004779/0.6032, allocations: 0.8246 MB / 0.5449 GB, free: 7.5 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.6032, allocations: 0 / 0.5449 GB, free: 7.5 MB / 362.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.QfURegulation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_QfURegulation_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_QfURegulation.fmu > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1)