Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001177/0.001177, allocations: 182.6 kB / 8.135 MB, free: 2.195 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.187/1.187, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0009472/0.0009473, allocations: 87.38 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1684/0.1684, allocations: 37.97 MB / 347.7 MB, free: 7.492 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2096/0.378, allocations: 62.44 MB / 410.1 MB, free: 46.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.4968, allocations: 56.32 MB / 466.4 MB, free: 6.402 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4104/0.9072, allocations: 99.41 MB / 0.5526 GB, free: 11.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.9076, allocations: 79.95 kB / 0.5526 GB, free: 11.05 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.04073/0.9483, allocations: 13.42 MB / 0.5658 GB, free: 13.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.9484, allocations: 11.94 kB / 0.5658 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007365/0.9491, allocations: 87.28 kB / 0.5659 GB, free: 13.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002438/0.9516, allocations: 0.8488 MB / 0.5667 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.699e-05/0.9516, allocations: 12 kB / 0.5667 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.9517, allocations: 28 kB / 0.5667 GB, free: 12.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001099/0.9528, allocations: 481.6 kB / 0.5672 GB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.9539, allocations: 0.6031 MB / 0.5678 GB, free: 11.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/0.9539, allocations: 7.906 kB / 0.5678 GB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.738e-05/0.954, allocations: 4 kB / 0.5678 GB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/0.9541, allocations: 44.69 kB / 0.5678 GB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00428/0.9584, allocations: 2.403 MB / 0.5702 GB, free: 8.742 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005443/0.959, allocations: 333.6 kB / 0.5705 GB, free: 8.398 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003708/0.9594, allocations: 262.5 kB / 0.5707 GB, free: 8.137 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.685e-05/0.9594, allocations: 7.984 kB / 0.5707 GB, free: 8.129 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.976e-05/0.9595, allocations: 42.5 kB / 0.5708 GB, free: 8.078 MB / 410.7 MB Notification: Performance of pre-optimization done (n=46): time 3.186e-06/0.9595, allocations: 3.938 kB / 0.5708 GB, free: 8.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=47): time 0.003179/0.9627, allocations: 1.536 MB / 0.5723 GB, free: 6.488 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.9628, allocations: 81.39 kB / 0.5724 GB, free: 6.391 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.963, allocations: 239.3 kB / 0.5726 GB, free: 6.148 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.9631, allocations: 25.7 kB / 0.5726 GB, free: 6.117 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.9632, allocations: 220.3 kB / 0.5728 GB, free: 5.898 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.9634, allocations: 157.7 kB / 0.573 GB, free: 5.742 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.16e-05/0.9634, allocations: 0 / 0.573 GB, free: 5.742 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.9636, allocations: 350.8 kB / 0.5733 GB, free: 5.391 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003296/0.9639, allocations: 225.1 kB / 0.5735 GB, free: 5.172 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004434/0.9644, allocations: 373.9 kB / 0.5739 GB, free: 4.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007823/0.9652, allocations: 376.1 kB / 0.5742 GB, free: 4.379 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.9652, allocations: 0 / 0.5742 GB, free: 4.379 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001441/0.9666, allocations: 0.7347 MB / 0.575 GB, free: 3.641 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.9667, allocations: 5.406 kB / 0.575 GB, free: 3.633 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.9667, allocations: 4 kB / 0.575 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/0.9667, allocations: 8 kB / 0.575 GB, free: 3.621 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004914/0.9672, allocations: 108.4 kB / 0.5751 GB, free: 3.516 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.9673, allocations: 8 kB / 0.5751 GB, free: 3.508 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.9676, allocations: 19.98 kB / 0.5751 GB, free: 3.488 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.043e-05/0.9676, allocations: 19.94 kB / 0.5751 GB, free: 3.469 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (55): * Single equations (assignments): 52 * Array equations: 3 * 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.0001476/0.9678, allocations: 124.7 kB / 0.5752 GB, free: 3.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.501e-05/0.9679, allocations: 31.61 kB / 0.5753 GB, free: 3.309 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/0.9693, allocations: 0.649 MB / 0.5759 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.316e-05/0.9694, allocations: 15.98 kB / 0.5759 GB, free: 2.637 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.9694, allocations: 0 / 0.5759 GB, free: 2.637 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.9694, allocations: 7.938 kB / 0.5759 GB, free: 2.629 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002719/0.9721, allocations: 1.39 MB / 0.5773 GB, free: 1.145 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.9721, allocations: 4.312 kB / 0.5773 GB, free: 1.141 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004148/0.9726, allocations: 79.8 kB / 0.5774 GB, free: 1.062 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.9726, allocations: 4 kB / 0.5774 GB, free: 1.059 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.141e-05/0.9726, allocations: 8 kB / 0.5774 GB, free: 1.051 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.013e-05/0.9727, allocations: 7.984 kB / 0.5774 GB, free: 1.043 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.075e-05/0.9727, allocations: 4 kB / 0.5774 GB, free: 1.039 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001853/0.9745, allocations: 1.209 MB / 0.5786 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002328/0.9769, allocations: 1.897 MB / 0.5804 GB, free: 13.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.977, allocations: 120.7 kB / 0.5805 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.061e-05/0.9771, allocations: 8 kB / 0.5805 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002815/0.9774, allocations: 11.98 kB / 0.5806 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.947e-05/0.9775, allocations: 27.91 kB / 0.5806 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.295e-05/0.9775, allocations: 12 kB / 0.5806 GB, free: 13.49 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.000185/0.9777, allocations: 183.1 kB / 0.5808 GB, free: 13.31 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001239/0.9789, allocations: 127.8 kB / 0.5809 GB, free: 13.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 30 * Array equations: 3 * 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.0003299/0.9793, allocations: 135.1 kB / 0.581 GB, free: 13.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009785/0.9803, allocations: 0.5449 MB / 0.5816 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.9803, allocations: 7.938 kB / 0.5816 GB, free: 12.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004794/0.9808, allocations: 272.9 kB / 0.5818 GB, free: 12.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/0.9813, allocations: 65.59 kB / 0.5819 GB, free: 12.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.9833, allocations: 0.9712 MB / 0.5828 GB, free: 11.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008256/0.9842, allocations: 0.9328 MB / 0.5837 GB, free: 10.17 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/0.9842, allocations: 0 / 0.5837 GB, free: 10.17 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)