Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.Islanding.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: translateModel(PowerSystems.Examples.AC3ph.Generation.Islanding,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.Islanding") translateModel(PowerSystems.Examples.AC3ph.Generation.Islanding,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.Islanding") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009353/0.0009349, allocations: 170.9 kB / 16.07 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007073/0.0007073, allocations: 97.81 kB / 270.6 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1581/0.1581, allocations: 38.07 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.0003909, allocations: 8 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2271, allocations: 56.32 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.Islanding): time 0.008716/0.2359, allocations: 10.65 MB / 490.3 MB, free: 1.902 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00859/0.2445, allocations: 6.339 MB / 496.6 MB, free: 13.42 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001281/0.2458, allocations: 66.53 kB / 496.7 MB, free: 13.39 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0188/0.2646, allocations: 12.08 MB / 0.4968 GB, free: 8.625 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002607/0.2673, allocations: 0.8095 MB / 0.4976 GB, free: 7.98 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.2689, allocations: 0.5318 MB / 0.4981 GB, free: 7.582 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004344/0.2733, allocations: 3.851 MB / 0.5019 GB, free: 4.059 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001748/0.275, allocations: 1.236 MB / 0.5031 GB, free: 2.773 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009959/0.2761, allocations: 0.7154 MB / 0.5038 GB, free: 2.055 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001051/0.2771, allocations: 0.9028 MB / 0.5047 GB, free: 1.148 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.2773, allocations: 60 kB / 0.5048 GB, free: 1.09 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006759/0.2779, allocations: 371.3 kB / 0.5051 GB, free: 0.7266 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004417/0.2784, allocations: 0.5024 MB / 0.5056 GB, free: 228 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006037/0.279, allocations: 0.6703 MB / 0.5063 GB, free: 15.54 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001467/0.2805, allocations: 1.726 MB / 0.5079 GB, free: 13.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2805, allocations: 0 / 0.5079 GB, free: 13.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2805, allocations: 0 / 0.5079 GB, free: 13.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.2805, allocations: 0 / 0.5079 GB, free: 13.81 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.003009/0.2835, allocations: 1.64 MB / 0.5095 GB, free: 12.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.2836, allocations: 12.03 kB / 0.5095 GB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007682/0.2844, allocations: 234.9 kB / 0.5098 GB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001925/0.2863, allocations: 1.156 MB / 0.5109 GB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.155e-05/0.2864, allocations: 98.12 kB / 0.511 GB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002841/0.2867, allocations: 135.9 kB / 0.5111 GB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00217/0.2888, allocations: 1.479 MB / 0.5126 GB, free: 8.887 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.2889, allocations: 4 kB / 0.5126 GB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/0.289, allocations: 44 kB / 0.5126 GB, free: 8.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000145/0.2892, allocations: 82.03 kB / 0.5127 GB, free: 8.758 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.2911, allocations: 1.214 MB / 0.5139 GB, free: 7.535 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007331/0.2985, allocations: 5.721 MB / 0.5195 GB, free: 1.551 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001445/0.2999, allocations: 0.9908 MB / 0.5204 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007994/0.3008, allocations: 492.3 kB / 0.5209 GB, free: 28 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.333e-05/0.3008, allocations: 16.7 kB / 0.5209 GB, free: 8 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.062e-05/0.3009, allocations: 47.16 kB / 0.521 GB, free: 15.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=76): time 2.965e-06/0.3009, allocations: 0 / 0.521 GB, free: 15.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.006767/0.3077, allocations: 3.726 MB / 0.5246 GB, free: 12.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.236e-05/0.3078, allocations: 163.2 kB / 0.5248 GB, free: 11.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.309, allocations: 0.9367 MB / 0.5257 GB, free: 10.94 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.843e-05/0.309, allocations: 41.7 kB / 0.5257 GB, free: 10.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004149/0.3095, allocations: 0.6356 MB / 0.5263 GB, free: 10.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002253/0.3097, allocations: 299.6 kB / 0.5266 GB, free: 9.949 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-05/0.3097, allocations: 20 kB / 0.5266 GB, free: 9.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3099, allocations: 345.9 kB / 0.527 GB, free: 9.586 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006576/0.3105, allocations: 401.8 kB / 0.5274 GB, free: 9.195 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008006/0.3113, allocations: 0.6405 MB / 0.528 GB, free: 8.449 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001544/0.3129, allocations: 1.091 MB / 0.529 GB, free: 7.262 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.3129, allocations: 4 kB / 0.529 GB, free: 7.258 MB / 362.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00415/0.3171, allocations: 2.093 MB / 0.5311 GB, free: 5.113 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001693/0.3173, allocations: 304.5 kB / 0.5314 GB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.3173, allocations: 7.938 kB / 0.5314 GB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002595/0.3199, allocations: 0.844 MB / 0.5322 GB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005871/0.3205, allocations: 163.8 kB / 0.5324 GB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01412/0.3346, allocations: 9.882 MB / 0.542 GB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008499/0.3355, allocations: 59.95 kB / 0.5421 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.493e-05/0.3356, allocations: 43.98 kB / 0.5421 GB, free: 9.301 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.546e-06/0.3356, allocations: 4.094 kB / 0.5421 GB, free: 9.297 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003297/0.3389, allocations: 1.761 MB / 0.5438 GB, free: 7.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.3389, allocations: 8 kB / 0.5439 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002334/0.3413, allocations: 0.7742 MB / 0.5446 GB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000536/0.3418, allocations: 159.7 kB / 0.5448 GB, free: 6.535 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/0.3534, allocations: 9.313 MB / 0.5539 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007747/0.3542, allocations: 51.91 kB / 0.5539 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.884e-05/0.3542, allocations: 39.98 kB / 0.5539 GB, free: 12.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,limPID_DC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 72 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {10 40} Notification: Performance of prepare postOptimizeDAE: time 0.0006913/0.3549, allocations: 472.8 kB / 0.5544 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.3551, allocations: 114.6 kB / 0.5545 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.357, allocations: 1.343 MB / 0.5558 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.357, allocations: 8 kB / 0.5558 GB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3571, allocations: 4 kB / 0.5558 GB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.916e-06/0.3571, allocations: 3.984 kB / 0.5558 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003508/0.3606, allocations: 2.665 MB / 0.5584 GB, free: 7.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.3606, allocations: 4 kB / 0.5584 GB, free: 7.926 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008821/0.3615, allocations: 183.8 kB / 0.5586 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002262/0.3617, allocations: 86.5 kB / 0.5587 GB, free: 7.652 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.505e-05/0.3618, allocations: 23.98 kB / 0.5587 GB, free: 7.629 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002489/0.3643, allocations: 4.136 MB / 0.5628 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3643, allocations: 3.984 kB / 0.5628 GB, free: 3.09 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002441/0.3668, allocations: 1.934 MB / 0.5646 GB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003597/0.3671, allocations: 263.6 kB / 0.5649 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.3673, allocations: 31.94 kB / 0.5649 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006053/0.3679, allocations: 51.95 kB / 0.565 GB, free: 0.7109 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.368, allocations: 56.92 kB / 0.565 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.532e-05/0.3681, allocations: 23.98 kB / 0.5651 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000882/0.369, allocations: 0.6463 MB / 0.5657 GB, free: 15.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.369, allocations: 0 / 0.5657 GB, free: 15.97 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001683/0.3707, allocations: 0.5509 MB / 0.5662 GB, free: 15.42 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 13 (turboGen.generator.i_s[1],turboGen.generator.i_s[2],turboGen.generator.i_s[3],turboGen.generator.i_rd[1],turboGen.generator.i_rq[1],turboGen.governor.speedReg.x_scaled[1],turboGen.rotor.phi,turboGen.rotor.w,capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,limPID_DC.I.y,limPID_DC.D.x) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002912/0.371, allocations: 158.8 kB / 0.5664 GB, free: 15.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004869/0.3759, allocations: 3.003 MB / 0.5693 GB, free: 12.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.3759, allocations: 0 / 0.5693 GB, free: 12.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.377, allocations: 0.8336 MB / 0.5701 GB, free: 11.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.3783, allocations: 264.5 kB / 0.5704 GB, free: 11.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005116/0.3834, allocations: 3.998 MB / 0.5743 GB, free: 7.012 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008928/0.3843, allocations: 1.334 MB / 0.5756 GB, free: 5.648 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002902/0.3846, allocations: 87.41 kB / 0.5757 GB, free: 5.562 MB / 410.7 MB Notification: Performance of SimCode: time 5.41e-07/0.3846, allocations: 0 / 0.5757 GB, free: 5.562 MB / 410.7 MB Notification: Performance of Templates: time 0.03462/0.4193, allocations: 34.93 MB / 0.6098 GB, free: 2.555 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.Islanding.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.Islanding.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.Islanding --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe 2>&1)