Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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) 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) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.07451/0.07451, allocations: 17.69 MB / 33.64 MB, free: 1.734 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001343/0.001344, allocations: 179.1 kB / 38.92 MB, free: 8 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 205.4 MB / 249.5 MB, free: 2.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007462/0.0007462, allocations: 94.25 kB / 302.2 MB, free: 4.43 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003715/0.0003715, allocations: 12.22 kB / 364.9 MB, free: 5.664 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2607, allocations: 51.98 MB / 416.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1058/0.3666, allocations: 78.45 MB / 495.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.3669, allocations: 75.95 kB / 495.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005609/0.3725, allocations: 1.929 MB / 497.3 MB, free: 8.105 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3725, allocations: 0 / 497.3 MB, free: 8.105 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.3726, allocations: 4 kB / 497.3 MB, free: 8.102 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006147/0.3732, allocations: 407.1 kB / 497.7 MB, free: 7.656 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.3732, allocations: 8.031 kB / 497.7 MB, free: 7.648 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.934e-05/0.3733, allocations: 16.75 kB / 497.8 MB, free: 7.633 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/0.3735, allocations: 204.7 kB / 498 MB, free: 7.395 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.3736, allocations: 4.75 kB / 498 MB, free: 7.391 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.628e-05/0.3736, allocations: 15.91 kB / 498 MB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001709/0.3738, allocations: 89.53 kB / 498.1 MB, free: 7.281 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.3738, allocations: 0 / 498.1 MB, free: 7.281 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.3738, allocations: 0 / 498.1 MB, free: 7.281 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.3738, allocations: 4 kB / 498.1 MB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.395e-05/0.3739, allocations: 43.97 kB / 498.1 MB, free: 7.234 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000647/0.3746, allocations: 388.5 kB / 498.5 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.3749, allocations: 171.6 kB / 498.7 MB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.2e-05/0.375, allocations: 40.84 kB / 498.7 MB, free: 6.566 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.375, allocations: 4 kB / 498.7 MB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.375, allocations: 38.5 kB / 498.7 MB, free: 6.516 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.3751, allocations: 0 / 498.7 MB, free: 6.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0009471/0.376, allocations: 436 kB / 499.2 MB, free: 6.035 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.3761, allocations: 55.41 kB / 499.2 MB, free: 5.969 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.3763, allocations: 158.3 kB / 499.4 MB, free: 5.801 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.3763, allocations: 25.7 kB / 499.4 MB, free: 5.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.438e-05/0.3764, allocations: 116.2 kB / 499.5 MB, free: 5.648 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.094e-05/0.3765, allocations: 43.36 kB / 499.5 MB, free: 5.605 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-06/0.3765, allocations: 4 kB / 499.6 MB, free: 5.602 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3767, allocations: 322.8 kB / 499.9 MB, free: 5.277 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.203e-05/0.3767, allocations: 27.98 kB / 499.9 MB, free: 5.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.603e-05/0.3768, allocations: 65.38 kB / 500 MB, free: 5.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003925/0.3772, allocations: 166.4 kB / 0.4884 GB, free: 5.008 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.3772, allocations: 0 / 0.4884 GB, free: 5.008 MB / 362.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005232/0.3778, allocations: 358 kB / 0.4887 GB, free: 4.605 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3778, allocations: 4 kB / 0.4887 GB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.3778, allocations: 0 / 0.4887 GB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001708/0.378, allocations: 45.75 kB / 0.4888 GB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.3781, allocations: 31.92 kB / 0.4888 GB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002632/0.3807, allocations: 4.205 MB / 0.4929 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.835e-05/0.3808, allocations: 4.031 kB / 0.4929 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.3809, allocations: 11.94 kB / 0.4929 GB, free: 15.96 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: G.thetap:VARIABLE(unit = "rad" fixed = true ) "generator and port absolute angles" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001212/0.381, allocations: 121.9 kB / 0.4931 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.927e-05/0.3811, allocations: 11.81 kB / 0.4931 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.192e-05/0.3811, allocations: 16.72 kB / 0.4931 GB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.3811, allocations: 0 / 0.4931 GB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3811, allocations: 11.92 kB / 0.4931 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3811, allocations: 0 / 0.4931 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005619/0.3817, allocations: 444.9 kB / 0.4935 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3817, allocations: 0 / 0.4935 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.3819, allocations: 23.94 kB / 0.4935 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-05/0.382, allocations: 36.77 kB / 0.4936 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.382, allocations: 8.094 kB / 0.4936 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.3831, allocations: 1.404 MB / 0.495 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3831, allocations: 4.031 kB / 0.495 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003228/0.3834, allocations: 274 kB / 0.4952 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.259e-05/0.3835, allocations: 88.92 kB / 0.4953 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.3835, allocations: 4 kB / 0.4953 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.576e-05/0.3836, allocations: 0 / 0.4953 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.516e-05/0.3837, allocations: 16.12 kB / 0.4953 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.3837, allocations: 7.938 kB / 0.4953 GB, free: 13.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.967e-05/0.3838, allocations: 119.2 kB / 0.4954 GB, free: 13.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3838, allocations: 0 / 0.4954 GB, free: 13.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003867/0.3842, allocations: 28 kB / 0.4955 GB, free: 13.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetag,G.thetap,G.wg,Gact.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001528/0.3843, allocations: 115.1 kB / 0.4956 GB, free: 12.99 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004263/0.3848, allocations: 305.4 kB / 0.4959 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3848, allocations: 0 / 0.4959 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.385, allocations: 158.5 kB / 0.496 GB, free: 12.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.3853, allocations: 19.92 kB / 0.496 GB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008834/0.3862, allocations: 0.5785 MB / 0.4966 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.3865, allocations: 0.7166 MB / 0.4973 GB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.744e-05/0.3866, allocations: 4.656 kB / 0.4973 GB, free: 11.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.157e-05/0.3866, allocations: 15.44 kB / 0.4973 GB, free: 11.12 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3866, allocations: 0 / 0.4973 GB, free: 11.12 MB / 378.7 MB Notification: Performance of Templates: time 0.003911/0.3906, allocations: 1.329 MB / 0.4986 GB, free: 9.789 MB / 378.7 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)