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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 114.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002346/0.002346, allocations: 210.2 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.583/1.583, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1071/0.1071, allocations: 22.93 MB / 332.5 MB, free: 2.656 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.02 kB / 464.6 MB, free: 33.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1277, allocations: 59.27 MB / 0.5116 GB, free: 168 kB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.004524/0.1322, allocations: 1.688 MB / 0.5133 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.1335, allocations: 0.4911 MB / 0.5137 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.1337, allocations: 4 kB / 0.5137 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.168e-05/0.1338, allocations: 7.875 kB / 0.5137 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003003/0.1341, allocations: 31.77 kB / 0.5138 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001336/0.1342, allocations: 27.91 kB / 0.5138 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002925/0.1345, allocations: 119.6 kB / 0.5139 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.1347, allocations: 25.42 kB / 0.5139 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002354/0.1349, allocations: 55.73 kB / 0.514 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.1351, allocations: 63.67 kB / 0.5141 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.9e-05/0.1351, allocations: 8 kB / 0.5141 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.568e-05/0.1351, allocations: 12 kB / 0.5141 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.922e-05/0.1352, allocations: 23.92 kB / 0.5141 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.11e-05/0.1352, allocations: 51.67 kB / 0.5141 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002555/0.1355, allocations: 99.55 kB / 0.5142 GB, free: 13.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1355, allocations: 0 / 0.5142 GB, free: 13.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.22e-06/0.1355, allocations: 4 kB / 0.5142 GB, free: 13.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.1355, allocations: 0 / 0.5142 GB, free: 13.44 MB / 382.1 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.0009723/0.1365, allocations: 430.8 kB / 0.5147 GB, free: 12.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.1365, allocations: 12.62 kB / 0.5147 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.711e-05/0.1366, allocations: 192 / 0.5147 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.852e-05/0.1367, allocations: 46.7 kB / 0.5147 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.352e-05/0.1367, allocations: 16.83 kB / 0.5147 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/0.1371, allocations: 216.4 kB / 0.5149 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.1372, allocations: 8 kB / 0.5149 GB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.868e-05/0.1372, allocations: 15.94 kB / 0.515 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.1375, allocations: 87.33 kB / 0.515 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.1375, allocations: 3.984 kB / 0.515 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/0.1375, allocations: 4 kB / 0.5151 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.1375, allocations: 4 kB / 0.5151 GB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000136/0.1377, allocations: 39.98 kB / 0.5151 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000885/0.1385, allocations: 396.5 kB / 0.5155 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003684/0.1389, allocations: 187.6 kB / 0.5156 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.139, allocations: 44.84 kB / 0.5157 GB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.139, allocations: 4 kB / 0.5157 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.767e-05/0.1391, allocations: 34.56 kB / 0.5157 GB, free: 11.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.583e-06/0.1391, allocations: 0 / 0.5157 GB, free: 11.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001282/0.1404, allocations: 492.9 kB / 0.5162 GB, free: 11.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.072e-05/0.1404, allocations: 55.41 kB / 0.5163 GB, free: 11.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.1407, allocations: 161.9 kB / 0.5164 GB, free: 10.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.1407, allocations: 29.7 kB / 0.5164 GB, free: 10.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.1409, allocations: 108.3 kB / 0.5165 GB, free: 10.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.157e-05/0.141, allocations: 63.47 kB / 0.5166 GB, free: 10.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.333e-05/0.141, allocations: 33.72 kB / 0.5166 GB, free: 10.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.1412, allocations: 326.8 kB / 0.5169 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.1414, allocations: 35.98 kB / 0.517 GB, free: 10.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.1415, allocations: 64.61 kB / 0.517 GB, free: 10.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000794/0.1423, allocations: 197.9 kB / 0.5172 GB, free: 10.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1423, allocations: 0 / 0.5172 GB, free: 10.09 MB / 382.1 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=21) (initialization): time 0.0007631/0.143, allocations: 363.1 kB / 0.5176 GB, free: 9.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.1431, allocations: 11.98 kB / 0.5176 GB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.1431, allocations: 0 / 0.5176 GB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002347/0.1433, allocations: 49.69 kB / 0.5176 GB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1435, allocations: 32.05 kB / 0.5177 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00475/0.1482, allocations: 4.648 MB / 0.5222 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.1483, allocations: 4.031 kB / 0.5222 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.1484, allocations: 8 kB / 0.5222 GB, free: 4.578 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: G.deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001818/0.1485, allocations: 125.7 kB / 0.5223 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.376e-05/0.1486, allocations: 19.91 kB / 0.5224 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.191e-05/0.1487, allocations: 12.84 kB / 0.5224 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.1487, allocations: 8 kB / 0.5224 GB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.1487, allocations: 4 kB / 0.5224 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1487, allocations: 0 / 0.5224 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009419/0.1496, allocations: 489 kB / 0.5228 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1496, allocations: 0 / 0.5228 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.1498, allocations: 27.98 kB / 0.5229 GB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001886/0.15, allocations: 48.8 kB / 0.5229 GB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.15, allocations: 4 kB / 0.5229 GB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001694/0.1517, allocations: 1.615 MB / 0.5245 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.1517, allocations: 0 / 0.5245 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005372/0.1522, allocations: 304.3 kB / 0.5248 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.903e-05/0.1523, allocations: 96.98 kB / 0.5249 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.1524, allocations: 8 kB / 0.5249 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.1525, allocations: 4 kB / 0.5249 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.059e-05/0.1526, allocations: 11.98 kB / 0.5249 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.1526, allocations: 4 kB / 0.5249 GB, free: 1.559 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001521/0.1527, allocations: 122.5 kB / 0.525 GB, free: 1.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1527, allocations: 0 / 0.525 GB, free: 1.441 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006763/0.1534, allocations: 36 kB / 0.5251 GB, free: 1.406 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,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 (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009343/0.1543, allocations: 0.8374 MB / 0.5259 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006209/0.155, allocations: 328.4 kB / 0.5262 GB, free: 196 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.155, allocations: 0 / 0.5262 GB, free: 196 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002944/0.1553, allocations: 170.6 kB / 0.5264 GB, free: 12 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/0.1557, allocations: 16.31 kB / 0.5264 GB, free: 15.99 MB / 398.1 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 simCode: created linear, non-linear and system jacobian parts: time 0.004414/0.1601, allocations: 2.499 MB / 0.5288 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.1606, allocations: 0.7124 MB / 0.5295 GB, free: 12.56 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.042e-05/0.1606, allocations: 17.42 kB / 0.5295 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.188e-05/0.1607, allocations: 35.42 kB / 0.5296 GB, free: 12.51 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1607, allocations: 4 kB / 0.5296 GB, free: 12.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03047/0.1912, allocations: 3.603 MB / 0.5331 GB, free: 9.117 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/12.96, allocations: 15.94 kB / 0.5331 GB, free: 9.102 MB / 398.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.948614567983896] Failed to read output from testmodel.py, exit status != 0: 13.11095852399012 13.127527242 12.988725624 Calling exit ...