Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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: translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") [: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.001381/0.001381, allocations: 189.6 kB / 8.129 MB, free: 2.074 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.361/1.361, allocations: 194.2 MB / 202.8 MB, free: 8.656 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.001658/0.001658, allocations: 120.4 kB / 247.7 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1649/0.1649, allocations: 37.91 MB / 330.5 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.018e-05/1.02e-05, allocations: 4 kB / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1046, allocations: 53.23 MB / 443 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3487/0.4534, allocations: 94.5 MB / 0.5249 GB, free: 9.203 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.4536, allocations: 81.41 kB / 0.525 GB, free: 9.191 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03613/0.4898, allocations: 12.74 MB / 0.5375 GB, free: 1.867 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.764e-05/0.4899, allocations: 8 kB / 0.5375 GB, free: 1.859 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001494/0.4914, allocations: 0.6702 MB / 0.5381 GB, free: 1.176 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.4914, allocations: 8.031 kB / 0.5381 GB, free: 1.168 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006571/0.4921, allocations: 83.38 kB / 0.5382 GB, free: 1.086 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.4942, allocations: 0.8545 MB / 0.539 GB, free: 356 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.4943, allocations: 12 kB / 0.539 GB, free: 344 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.828e-05/0.4944, allocations: 28 kB / 0.5391 GB, free: 316 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007516/0.4951, allocations: 478.2 kB / 0.5395 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008874/0.496, allocations: 0.6106 MB / 0.5401 GB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.475e-05/0.4961, allocations: 11.92 kB / 0.5401 GB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.649e-05/0.4961, allocations: 3.906 kB / 0.5401 GB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000113/0.4963, allocations: 43.69 kB / 0.5402 GB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003852/0.5001, allocations: 2.405 MB / 0.5425 GB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004538/0.5006, allocations: 327.5 kB / 0.5428 GB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003225/0.5009, allocations: 263.5 kB / 0.5431 GB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.247e-05/0.501, allocations: 11.98 kB / 0.5431 GB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.501, allocations: 30.56 kB / 0.5431 GB, free: 12.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 2.695e-06/0.501, allocations: 0 / 0.5431 GB, free: 12.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.002912/0.5039, allocations: 1.543 MB / 0.5446 GB, free: 11.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.504, allocations: 89.23 kB / 0.5447 GB, free: 11.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.5042, allocations: 236.9 kB / 0.545 GB, free: 11.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.5043, allocations: 25.7 kB / 0.545 GB, free: 11.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.5044, allocations: 218.4 kB / 0.5452 GB, free: 10.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.5045, allocations: 161.8 kB / 0.5453 GB, free: 10.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.1e-05/0.5046, allocations: 0 / 0.5453 GB, free: 10.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.5047, allocations: 348.8 kB / 0.5457 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.505, allocations: 218.1 kB / 0.5459 GB, free: 10.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003617/0.5054, allocations: 371 kB / 0.5462 GB, free: 9.973 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007049/0.5061, allocations: 378.6 kB / 0.5466 GB, free: 9.688 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.5061, allocations: 3.984 kB / 0.5466 GB, free: 9.684 MB / 362.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001201/0.5073, allocations: 0.7224 MB / 0.5473 GB, free: 9.094 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.5073, allocations: 4 kB / 0.5473 GB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.5074, allocations: 4 kB / 0.5473 GB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.5074, allocations: 11.98 kB / 0.5473 GB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004431/0.5078, allocations: 102.8 kB / 0.5474 GB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.5079, allocations: 16.56 kB / 0.5474 GB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002788/0.5081, allocations: 19.98 kB / 0.5475 GB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/0.5082, allocations: 19.94 kB / 0.5475 GB, free: 8.926 MB / 362.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.0001173/0.5083, allocations: 112.8 kB / 0.5476 GB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.156e-05/0.5084, allocations: 31.62 kB / 0.5476 GB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.5096, allocations: 0.6595 MB / 0.5483 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.485e-05/0.5096, allocations: 15.98 kB / 0.5483 GB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5096, allocations: 0 / 0.5483 GB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.5096, allocations: 3.984 kB / 0.5483 GB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00243/0.5121, allocations: 1.402 MB / 0.5496 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.5121, allocations: 4 kB / 0.5496 GB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/0.5125, allocations: 79.58 kB / 0.5497 GB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.5125, allocations: 8 kB / 0.5497 GB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.5126, allocations: 7.906 kB / 0.5497 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.5126, allocations: 4 kB / 0.5497 GB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.5126, allocations: 7.938 kB / 0.5498 GB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00156/0.5142, allocations: 1.207 MB / 0.5509 GB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.558e-05/0.5143, allocations: 112.2 kB / 0.551 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.63e-05/0.5144, allocations: 4 kB / 0.551 GB, free: 5.684 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.5146, allocations: 19.88 kB / 0.5511 GB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.515e-05/0.5147, allocations: 23.36 kB / 0.5511 GB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.5147, allocations: 19.48 kB / 0.5511 GB, free: 5.629 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001547/0.5149, allocations: 175.8 kB / 0.5513 GB, free: 5.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005436/0.5154, allocations: 115.9 kB / 0.5514 GB, free: 5.371 MB / 362.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.0002309/0.5157, allocations: 131 kB / 0.5515 GB, free: 5.234 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007996/0.5165, allocations: 0.5535 MB / 0.552 GB, free: 4.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.5165, allocations: 3.938 kB / 0.552 GB, free: 4.816 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.5169, allocations: 272.7 kB / 0.5523 GB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.5173, allocations: 62.36 kB / 0.5524 GB, free: 4.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.5191, allocations: 0.9827 MB / 0.5533 GB, free: 3.648 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006417/0.5197, allocations: 0.9166 MB / 0.5542 GB, free: 2.727 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5197, allocations: 0 / 0.5542 GB, free: 2.727 MB / 362.7 MB Notification: Performance of Templates: time 0.009855/0.5296, allocations: 4.647 MB / 0.5588 GB, free: 14.14 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)