Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",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.001105/0.001104, allocations: 180.6 kB / 8.134 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9939/0.9939, allocations: 194.2 MB / 202.8 MB, free: 8.719 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.001677/0.001677, allocations: 121 kB / 247.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1513/0.1513, allocations: 37.92 MB / 330.6 MB, free: 6.918 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1793/0.3306, allocations: 59.33 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07339/0.404, allocations: 53.22 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2448/0.6488, allocations: 94.53 MB / 0.525 GB, free: 9.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.649, allocations: 71.94 kB / 0.5251 GB, free: 9.508 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.0298/0.6789, allocations: 12.46 MB / 0.5373 GB, free: 2.105 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.6789, allocations: 8 kB / 0.5373 GB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004955/0.6794, allocations: 91.22 kB / 0.5374 GB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.6812, allocations: 0.8323 MB / 0.5382 GB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.6812, allocations: 12 kB / 0.5382 GB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.581e-05/0.6813, allocations: 31.92 kB / 0.5382 GB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00049/0.6818, allocations: 372.5 kB / 0.5386 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005653/0.6824, allocations: 0.5617 MB / 0.5391 GB, free: 496 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.6824, allocations: 4 kB / 0.5391 GB, free: 492 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.6824, allocations: 0 / 0.5391 GB, free: 492 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.654e-05/0.6825, allocations: 28.77 kB / 0.5392 GB, free: 464 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.6852, allocations: 2.779 MB / 0.5419 GB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/0.6855, allocations: 194.8 kB / 0.5421 GB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.6856, allocations: 141.3 kB / 0.5422 GB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.6857, allocations: 15.86 kB / 0.5422 GB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.6857, allocations: 37.88 kB / 0.5423 GB, free: 13.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.034e-06/0.6857, allocations: 0 / 0.5423 GB, free: 13.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.001334/0.6871, allocations: 0.8414 MB / 0.5431 GB, free: 12.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.6871, allocations: 85.14 kB / 0.5432 GB, free: 12.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002294/0.6873, allocations: 261.7 kB / 0.5434 GB, free: 12.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.6874, allocations: 26.45 kB / 0.5434 GB, free: 12.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.6875, allocations: 253.6 kB / 0.5437 GB, free: 12.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.817e-05/0.6876, allocations: 96.62 kB / 0.5438 GB, free: 12.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.668e-05/0.6876, allocations: 0 / 0.5438 GB, free: 12.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.821e-05/0.6877, allocations: 360.5 kB / 0.5441 GB, free: 11.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.6879, allocations: 136.3 kB / 0.5442 GB, free: 11.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002652/0.6881, allocations: 339.7 kB / 0.5446 GB, free: 11.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002846/0.6884, allocations: 208.7 kB / 0.5448 GB, free: 11.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.6884, allocations: 7.938 kB / 0.5448 GB, free: 11.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006581/0.6891, allocations: 494 kB / 0.5452 GB, free: 10.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.6891, allocations: 4.125 kB / 0.5452 GB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.6892, allocations: 12 kB / 0.5453 GB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.6892, allocations: 8 kB / 0.5453 GB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003873/0.6896, allocations: 111.2 kB / 0.5454 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.6896, allocations: 15.94 kB / 0.5454 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002345/0.6898, allocations: 15.89 kB / 0.5454 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.29e-05/0.6899, allocations: 23.62 kB / 0.5454 GB, free: 10.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (57): * Single equations (assignments): 56 * Array equations: 1 * Algorithm blocks: 0 * 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 9.434e-05/0.69, allocations: 120.7 kB / 0.5455 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.916e-05/0.69, allocations: 27.62 kB / 0.5456 GB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006212/0.6907, allocations: 357.8 kB / 0.5459 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.6907, allocations: 11.98 kB / 0.5459 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.6907, allocations: 0 / 0.5459 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.6907, allocations: 0 / 0.5459 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.6919, allocations: 0.809 MB / 0.5467 GB, free: 9.371 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.6919, allocations: 0 / 0.5467 GB, free: 9.371 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003225/0.6922, allocations: 63.22 kB / 0.5468 GB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.6922, allocations: 4 kB / 0.5468 GB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.417e-05/0.6922, allocations: 7.984 kB / 0.5468 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.6923, allocations: 0 / 0.5468 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6923, allocations: 3.938 kB / 0.5468 GB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000673/0.6929, allocations: 0.6323 MB / 0.5474 GB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009119/0.6939, allocations: 1.185 MB / 0.5486 GB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.784e-05/0.6939, allocations: 104.7 kB / 0.5487 GB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.596e-05/0.694, allocations: 7.938 kB / 0.5487 GB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.6942, allocations: 4 kB / 0.5487 GB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.6942, allocations: 19.03 kB / 0.5487 GB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.6943, allocations: 11.91 kB / 0.5487 GB, free: 7.527 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001499/0.6944, allocations: 199.6 kB / 0.5489 GB, free: 7.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009947/0.6954, allocations: 91.94 kB / 0.549 GB, free: 7.281 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 1 * 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.0001665/0.6956, allocations: 129.3 kB / 0.5491 GB, free: 7.152 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00047/0.6961, allocations: 345.5 kB / 0.5494 GB, free: 6.895 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6961, allocations: 1.812 kB / 0.5494 GB, free: 6.895 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.6963, allocations: 150 kB / 0.5496 GB, free: 6.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.6966, allocations: 54.12 kB / 0.5496 GB, free: 6.746 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.6978, allocations: 0.7827 MB / 0.5504 GB, free: 6.008 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004913/0.6984, allocations: 0.9062 MB / 0.5513 GB, free: 5.094 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6984, allocations: 0 / 0.5513 GB, free: 5.094 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)