Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",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.0009947/0.0009947, allocations: 181.9 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.3+maint.om/package.mo): time 1.069/1.069, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.0008488/0.0008488, allocations: 96.06 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1612/0.1612, allocations: 37.98 MB / 347.7 MB, free: 7.516 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.153/0.3143, allocations: 62.43 MB / 410.1 MB, free: 46.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07844/0.3927, allocations: 56.3 MB / 466.4 MB, free: 6.395 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2347/0.6274, allocations: 94.34 MB / 0.5476 GB, free: 272 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.6277, allocations: 83.94 kB / 0.5477 GB, free: 188 kB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.02808/0.6557, allocations: 10.51 MB / 0.5579 GB, free: 5.523 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.6558, allocations: 8 kB / 0.558 GB, free: 5.516 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.6559, allocations: 55.33 kB / 0.558 GB, free: 5.461 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002389/0.6583, allocations: 1.01 MB / 0.559 GB, free: 4.414 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.6583, allocations: 19.92 kB / 0.559 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.474e-05/0.6584, allocations: 20 kB / 0.559 GB, free: 4.375 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004786/0.6589, allocations: 277.5 kB / 0.5593 GB, free: 4.105 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005613/0.6595, allocations: 399 kB / 0.5597 GB, free: 3.676 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.6595, allocations: 3.906 kB / 0.5597 GB, free: 3.672 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.6595, allocations: 4 kB / 0.5597 GB, free: 3.668 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.6595, allocations: 8 kB / 0.5597 GB, free: 3.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.6614, allocations: 1.694 MB / 0.5613 GB, free: 1.863 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.6616, allocations: 115 kB / 0.5615 GB, free: 1.727 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.21e-05/0.6617, allocations: 58.58 kB / 0.5615 GB, free: 1.66 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.6617, allocations: 0 / 0.5615 GB, free: 1.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/0.6617, allocations: 42.5 kB / 0.5616 GB, free: 1.609 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.6617, allocations: 0 / 0.5616 GB, free: 1.609 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007667/0.6625, allocations: 0.5375 MB / 0.5621 GB, free: 1.016 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.6626, allocations: 106.8 kB / 0.5622 GB, free: 0.8867 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.6628, allocations: 281.6 kB / 0.5624 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.6629, allocations: 25.7 kB / 0.5625 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.663, allocations: 243.2 kB / 0.5627 GB, free: 344 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.663, allocations: 59.22 kB / 0.5628 GB, free: 284 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.105e-06/0.6631, allocations: 0 / 0.5628 GB, free: 284 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.6632, allocations: 350.7 kB / 0.5631 GB, free: 15.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.619e-05/0.6633, allocations: 40 kB / 0.5631 GB, free: 15.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.6634, allocations: 183.3 kB / 0.5633 GB, free: 15.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.6636, allocations: 83.98 kB / 0.5634 GB, free: 15.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.6636, allocations: 0 / 0.5634 GB, free: 15.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003784/0.6639, allocations: 249.2 kB / 0.5636 GB, free: 15.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.664, allocations: 9.406 kB / 0.5636 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.664, allocations: 4 kB / 0.5636 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.664, allocations: 8 kB / 0.5636 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/0.6643, allocations: 67.91 kB / 0.5637 GB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.6643, allocations: 11.94 kB / 0.5637 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.6645, allocations: 11.84 kB / 0.5637 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.6645, allocations: 20 kB / 0.5638 GB, free: 15.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.902e-05/0.6646, allocations: 109.1 kB / 0.5639 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.559e-05/0.6647, allocations: 39.52 kB / 0.5639 GB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002569/0.6649, allocations: 148.7 kB / 0.564 GB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.6649, allocations: 7.938 kB / 0.564 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.6649, allocations: 0 / 0.564 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.6649, allocations: 3.984 kB / 0.564 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000545/0.6655, allocations: 471.7 kB / 0.5645 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.6655, allocations: 8.031 kB / 0.5645 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002092/0.6657, allocations: 35.92 kB / 0.5645 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.6657, allocations: 0 / 0.5645 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.6658, allocations: 8 kB / 0.5645 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.6658, allocations: 0 / 0.5645 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.6658, allocations: 3.906 kB / 0.5646 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000377/0.6662, allocations: 415.9 kB / 0.5649 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005182/0.6667, allocations: 0.8264 MB / 0.5658 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.568e-05/0.6668, allocations: 116.9 kB / 0.5659 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.564e-05/0.6668, allocations: 4 kB / 0.5659 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.667, allocations: 4 kB / 0.5659 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.238e-05/0.667, allocations: 11.92 kB / 0.5659 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.6671, allocations: 12 kB / 0.5659 GB, free: 12.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001889/0.6673, allocations: 215.2 kB / 0.5661 GB, free: 12.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009661/0.6682, allocations: 75.84 kB / 0.5662 GB, free: 12.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltage2.theta,ind2.i,ind1.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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.0001055/0.6683, allocations: 95.34 kB / 0.5663 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002259/0.6686, allocations: 144.5 kB / 0.5664 GB, free: 12.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.6686, allocations: 384 / 0.5664 GB, free: 12.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.754e-05/0.6687, allocations: 55.92 kB / 0.5665 GB, free: 12.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.6692, allocations: 73.41 kB / 0.5665 GB, free: 12.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.6703, allocations: 0.6239 MB / 0.5671 GB, free: 11.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004598/0.6708, allocations: 0.885 MB / 0.568 GB, free: 10.59 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6708, allocations: 0 / 0.568 GB, free: 10.59 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat does not exist to compare? outputFormat=mat