Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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 3.2.2+maint.om/package.mo): time 0.001008/0.001008, allocations: 183.5 kB / 8.133 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.073/1.073, allocations: 194.2 MB / 202.8 MB, free: 8.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001692/0.001692, allocations: 122 kB / 247.7 MB, free: 6.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1541/0.1541, allocations: 37.91 MB / 330.5 MB, free: 6.719 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1936/0.3477, allocations: 59.35 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07982/0.4276, allocations: 53.24 MB / 443.1 MB, free: 24.87 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.258/0.6856, allocations: 88.12 MB / 0.5188 GB, free: 10.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.6859, allocations: 86.23 kB / 0.5189 GB, free: 10.71 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0177/0.7036, allocations: 6.612 MB / 0.5253 GB, free: 7.949 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.7036, allocations: 9.062 kB / 0.5253 GB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.245e-05/0.7037, allocations: 30.25 kB / 0.5254 GB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001354/0.7051, allocations: 0.6558 MB / 0.526 GB, free: 7.551 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.7051, allocations: 11.59 kB / 0.526 GB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.7052, allocations: 25.33 kB / 0.526 GB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002953/0.7055, allocations: 168.1 kB / 0.5262 GB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003248/0.7059, allocations: 256 kB / 0.5264 GB, free: 7.379 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.7059, allocations: 1.062 kB / 0.5264 GB, free: 7.379 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.7059, allocations: 5.109 kB / 0.5264 GB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.7059, allocations: 5.5 kB / 0.5265 GB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.7072, allocations: 1.243 MB / 0.5277 GB, free: 6.348 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.7075, allocations: 106.6 kB / 0.5278 GB, free: 6.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.632e-05/0.7076, allocations: 43.91 kB / 0.5278 GB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.7076, allocations: 5.031 kB / 0.5278 GB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.56e-05/0.7076, allocations: 36.22 kB / 0.5279 GB, free: 6.199 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.7076, allocations: 1.094 kB / 0.5279 GB, free: 6.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007541/0.7084, allocations: 489.3 kB / 0.5283 GB, free: 5.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.688e-05/0.7084, allocations: 113 kB / 0.5284 GB, free: 5.688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.7086, allocations: 201.4 kB / 0.5286 GB, free: 5.578 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.7086, allocations: 30.39 kB / 0.5286 GB, free: 5.543 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.7087, allocations: 168.3 kB / 0.5288 GB, free: 5.402 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.7087, allocations: 36.17 kB / 0.5288 GB, free: 5.375 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.875e-06/0.7087, allocations: 1.031 kB / 0.5288 GB, free: 5.375 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.607e-05/0.7088, allocations: 334.8 kB / 0.5292 GB, free: 5.055 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.716e-05/0.7088, allocations: 31.09 kB / 0.5292 GB, free: 5.055 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.207e-05/0.7089, allocations: 127.6 kB / 0.5293 GB, free: 4.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.092e-05/0.709, allocations: 53.72 kB / 0.5294 GB, free: 4.918 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.709, allocations: 5.062 kB / 0.5294 GB, free: 4.914 MB / 346.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003599/0.7094, allocations: 203.6 kB / 0.5296 GB, free: 4.828 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.7094, allocations: 5.5 kB / 0.5296 GB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.7094, allocations: 3.375 kB / 0.5296 GB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001149/0.7096, allocations: 30.41 kB / 0.5296 GB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.7099, allocations: 73.16 kB / 0.5297 GB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.71, allocations: 11.91 kB / 0.5297 GB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.7101, allocations: 8.344 kB / 0.5297 GB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/0.7101, allocations: 8.031 kB / 0.5297 GB, free: 4.777 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 5.772e-05/0.7102, allocations: 115.2 kB / 0.5298 GB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.261e-05/0.7103, allocations: 21.47 kB / 0.5298 GB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002397/0.7105, allocations: 142.1 kB / 0.53 GB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.7105, allocations: 2.531 kB / 0.53 GB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.7105, allocations: 1.156 kB / 0.53 GB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.7105, allocations: 5.328 kB / 0.53 GB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.7108, allocations: 244.2 kB / 0.5302 GB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.7108, allocations: 5.406 kB / 0.5302 GB, free: 4.391 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.711, allocations: 31.05 kB / 0.5302 GB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.711, allocations: 1.344 kB / 0.5302 GB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.711, allocations: 5.359 kB / 0.5302 GB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.711, allocations: 1.219 kB / 0.5302 GB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.711, allocations: 1 kB / 0.5302 GB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003193/0.7114, allocations: 388.9 kB / 0.5306 GB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003882/0.7118, allocations: 0.7984 MB / 0.5314 GB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.148e-05/0.7118, allocations: 98.92 kB / 0.5315 GB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.654e-05/0.7119, allocations: 1.438 kB / 0.5315 GB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.712, allocations: 5.359 kB / 0.5315 GB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.183e-05/0.7121, allocations: 4.25 kB / 0.5315 GB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.7121, allocations: 15.73 kB / 0.5315 GB, free: 3.324 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001129/0.7122, allocations: 155.2 kB / 0.5317 GB, free: 3.238 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009329/0.7131, allocations: 42.81 kB / 0.5317 GB, free: 3.238 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001161/0.7132, allocations: 105.3 kB / 0.5318 GB, free: 3.145 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000279/0.7135, allocations: 199.8 kB / 0.532 GB, free: 3.027 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.7135, allocations: 0 / 0.532 GB, free: 3.027 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.504e-05/0.7136, allocations: 52.72 kB / 0.532 GB, free: 3.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.714, allocations: 47.5 kB / 0.5321 GB, free: 3.004 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007233/0.7147, allocations: 427.7 kB / 0.5325 GB, free: 2.715 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002551/0.715, allocations: 0.8062 MB / 0.5333 GB, free: 1.969 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.715, allocations: 0 / 0.5333 GB, free: 1.969 MB / 346.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)