Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.001557/0.001557, allocations: 186.9 kB / 8.135 MB, free: 2.176 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.128/1.128, allocations: 205.2 MB / 213.7 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001129/0.001128, allocations: 92.52 kB / 261.7 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1651/0.1651, allocations: 37.97 MB / 347.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1914/0.3566, allocations: 62.44 MB / 410.1 MB, free: 46.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.4684, allocations: 56.31 MB / 466.4 MB, free: 6.363 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.327/0.7955, allocations: 99.43 MB / 0.5526 GB, free: 11.05 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.7958, allocations: 79.95 kB / 0.5527 GB, free: 10.96 MB / 394.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.03494/0.8307, allocations: 12.44 MB / 0.5648 GB, free: 14.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.8308, allocations: 8 kB / 0.5648 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005911/0.8314, allocations: 91.28 kB / 0.5649 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002158/0.8336, allocations: 0.8373 MB / 0.5657 GB, free: 13.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.8336, allocations: 16 kB / 0.5657 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.814e-05/0.8337, allocations: 32.64 kB / 0.5658 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006906/0.8344, allocations: 373.8 kB / 0.5661 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008008/0.8352, allocations: 0.5526 MB / 0.5667 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.644e-05/0.8353, allocations: 7.938 kB / 0.5667 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.051e-05/0.8353, allocations: 0 / 0.5667 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.095e-05/0.8354, allocations: 28.77 kB / 0.5667 GB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003367/0.8387, allocations: 2.788 MB / 0.5694 GB, free: 9.383 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.8391, allocations: 196.7 kB / 0.5696 GB, free: 9.172 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.8393, allocations: 149.8 kB / 0.5698 GB, free: 9.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.8393, allocations: 7.984 kB / 0.5698 GB, free: 9.012 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.8394, allocations: 38.56 kB / 0.5698 GB, free: 8.965 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 1.804e-06/0.8394, allocations: 0 / 0.5698 GB, free: 8.965 MB / 410.7 MB Notification: Performance of matching and sorting (n=30): time 0.001471/0.8408, allocations: 0.8454 MB / 0.5706 GB, free: 8.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.8409, allocations: 85.05 kB / 0.5707 GB, free: 7.969 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.8412, allocations: 263.3 kB / 0.571 GB, free: 7.707 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.8412, allocations: 25.7 kB / 0.571 GB, free: 7.676 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.8414, allocations: 255.2 kB / 0.5712 GB, free: 7.418 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.482e-05/0.8415, allocations: 102.5 kB / 0.5713 GB, free: 7.316 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.671e-05/0.8415, allocations: 0 / 0.5713 GB, free: 7.316 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.8416, allocations: 354.8 kB / 0.5717 GB, free: 6.961 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.8419, allocations: 133 kB / 0.5718 GB, free: 6.832 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/0.8422, allocations: 334.1 kB / 0.5721 GB, free: 6.418 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.8426, allocations: 211.8 kB / 0.5723 GB, free: 6.211 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.8426, allocations: 4 kB / 0.5723 GB, free: 6.207 MB / 410.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000776/0.8434, allocations: 497.2 kB / 0.5728 GB, free: 5.715 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.8434, allocations: 5.406 kB / 0.5728 GB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.8434, allocations: 8 kB / 0.5728 GB, free: 5.703 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.8434, allocations: 11.91 kB / 0.5728 GB, free: 5.691 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004105/0.8439, allocations: 111.8 kB / 0.5729 GB, free: 5.582 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.896e-05/0.8439, allocations: 15.94 kB / 0.5729 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.8441, allocations: 11.98 kB / 0.5729 GB, free: 5.555 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-05/0.8442, allocations: 28.3 kB / 0.573 GB, free: 5.527 MB / 410.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 0.0001063/0.8443, allocations: 121.3 kB / 0.5731 GB, free: 5.402 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.531e-05/0.8444, allocations: 31.53 kB / 0.5731 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006223/0.845, allocations: 349.3 kB / 0.5734 GB, free: 5.023 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/0.845, allocations: 11.98 kB / 0.5735 GB, free: 5.012 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.8451, allocations: 0 / 0.5735 GB, free: 5.012 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.8451, allocations: 0 / 0.5735 GB, free: 5.012 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/0.8465, allocations: 0.8215 MB / 0.5743 GB, free: 4.137 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.8465, allocations: 3.938 kB / 0.5743 GB, free: 4.133 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003356/0.8468, allocations: 59.91 kB / 0.5743 GB, free: 4.074 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-06/0.8468, allocations: 4 kB / 0.5743 GB, free: 4.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.8469, allocations: 11.98 kB / 0.5743 GB, free: 4.059 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.8469, allocations: 3.906 kB / 0.5743 GB, free: 4.055 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.8469, allocations: 4.094 kB / 0.5743 GB, free: 4.051 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008461/0.8477, allocations: 0.6301 MB / 0.575 GB, free: 3.363 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001166/0.8489, allocations: 1.185 MB / 0.5761 GB, free: 2.121 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.889e-05/0.849, allocations: 104.7 kB / 0.5762 GB, free: 2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.8491, allocations: 4 kB / 0.5762 GB, free: 1.996 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.8493, allocations: 7.984 kB / 0.5762 GB, free: 1.988 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.8494, allocations: 19.89 kB / 0.5762 GB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.8494, allocations: 12 kB / 0.5763 GB, free: 1.957 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002066/0.8496, allocations: 199.1 kB / 0.5765 GB, free: 1.766 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001134/0.8507, allocations: 88 kB / 0.5765 GB, free: 1.68 MB / 410.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.0002268/0.851, allocations: 119.1 kB / 0.5766 GB, free: 1.555 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006007/0.8516, allocations: 357.8 kB / 0.577 GB, free: 1.207 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.8516, allocations: 320 / 0.577 GB, free: 1.207 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002291/0.8518, allocations: 147.8 kB / 0.5771 GB, free: 1.062 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004019/0.8522, allocations: 49.06 kB / 0.5772 GB, free: 1.012 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.8537, allocations: 0.7798 MB / 0.5779 GB, free: 208 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006881/0.8544, allocations: 0.905 MB / 0.5788 GB, free: 15.27 MB / 426.7 MB Notification: Performance of SimCode: time 2.8e-07/0.8544, allocations: 0 / 0.5788 GB, free: 15.27 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)