Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.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.0009555/0.0009555, allocations: 76.52 kB / 19.95 MB, free: 4.598 MB / 18.57 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.001009/0.001009, allocations: 169.2 kB / 23.23 MB, free: 1.316 MB / 18.57 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 0.8745/0.8745, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.06315/0.06315, allocations: 18.12 MB / 278.1 MB, free: 11.54 MB / 266.7 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.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 415 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.666e-05/1.775e-05, allocations: 3.125 kB / 415 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.001869/0.001886, allocations: 1.83 MB / 416.9 MB, free: 11.5 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006599/0.002546, allocations: 0.5238 MB / 417.4 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.828e-05/0.002615, allocations: 2.031 kB / 417.4 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002447/0.002859, allocations: 32.84 kB / 417.4 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.002985, allocations: 59.53 kB / 417.5 MB, free: 11.1 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001562/0.003141, allocations: 73.45 kB / 417.6 MB, free: 11.07 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000155/0.003296, allocations: 171.4 kB / 417.7 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.003398, allocations: 31.06 kB / 417.8 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.00356, allocations: 80.33 kB / 417.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.003673, allocations: 74.72 kB / 417.9 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.003696, allocations: 17.31 kB / 417.9 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.279e-05/0.003719, allocations: 13.44 kB / 417.9 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.677e-05/0.003766, allocations: 44.84 kB / 418 MB, free: 10.89 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.208e-05/0.003808, allocations: 47.42 kB / 418 MB, free: 10.87 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.003952, allocations: 149.1 kB / 418.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.003955, allocations: 2.016 kB / 418.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.003956, allocations: 0 / 418.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.00396, allocations: 0 / 418.2 MB, free: 10.81 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005659/0.004526, allocations: 422.2 kB / 418.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.004561, allocations: 13.48 kB / 418.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.916e-05/0.00459, allocations: 41.42 kB / 418.6 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.33e-05/0.004623, allocations: 20.64 kB / 418.7 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.00487, allocations: 193.6 kB / 418.9 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.004886, allocations: 9.797 kB / 418.9 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.00491, allocations: 13.12 kB / 418.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001525/0.005063, allocations: 112.2 kB / 419 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.005071, allocations: 3.938 kB / 419 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.005082, allocations: 6.016 kB / 419 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.005088, allocations: 3.594 kB / 419 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.005218, allocations: 91.72 kB / 419.1 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004846/0.005703, allocations: 407.6 kB / 419.5 MB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.005931, allocations: 155 kB / 419.6 MB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.43e-05/0.006006, allocations: 62.61 kB / 419.7 MB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.006018, allocations: 1.281 kB / 419.7 MB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.109e-05/0.006029, allocations: 36.58 kB / 419.7 MB, free: 9.707 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.00603, allocations: 0 / 419.7 MB, free: 9.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006423/0.006672, allocations: 472.7 kB / 420.2 MB, free: 9.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.77e-05/0.00669, allocations: 54.09 kB / 420.3 MB, free: 9.348 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.006859, allocations: 204.8 kB / 420.5 MB, free: 9.219 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.696e-06/0.006868, allocations: 31.14 kB / 420.5 MB, free: 9.184 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.009e-05/0.006908, allocations: 117.9 kB / 420.6 MB, free: 9.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.649e-05/0.006934, allocations: 60.44 kB / 420.7 MB, free: 9.023 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.654e-05/0.006971, allocations: 35.78 kB / 420.7 MB, free: 8.996 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.933e-05/0.007, allocations: 324.3 kB / 421 MB, free: 8.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.015e-05/0.00706, allocations: 48.52 kB / 421.1 MB, free: 8.664 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.933e-05/0.00713, allocations: 72.34 kB / 421.1 MB, free: 8.625 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004336/0.007563, allocations: 269.4 kB / 421.4 MB, free: 8.523 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.007564, allocations: 4 kB / 421.4 MB, free: 8.52 MB / 330.7 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd 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.0003657/0.00793, allocations: 232.8 kB / 421.6 MB, free: 8.398 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.007943, allocations: 9.25 kB / 421.6 MB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.007949, allocations: 1.5 kB / 421.6 MB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001485/0.008097, allocations: 59.38 kB / 421.7 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.008215, allocations: 33.52 kB / 421.7 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.009312, allocations: 4.424 MB / 426.1 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.618e-05/0.009408, allocations: 24.89 kB / 426.2 MB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.009418, allocations: 4.906 kB / 426.2 MB, free: 3.871 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.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: 2 * 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 7.701e-05/0.009495, allocations: 128.7 kB / 426.3 MB, free: 3.746 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.009517, allocations: 11.23 kB / 426.3 MB, free: 3.742 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.009537, allocations: 22.36 kB / 426.3 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.009539, allocations: 1.406 kB / 426.3 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.009543, allocations: 4.672 kB / 426.3 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.009548, allocations: 2.375 kB / 426.3 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003986/0.009947, allocations: 466.4 kB / 426.8 MB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.009949, allocations: 1.094 kB / 426.8 MB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.786e-05/0.01004, allocations: 28.08 kB / 426.8 MB, free: 3.363 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.867e-05/0.01013, allocations: 36.17 kB / 426.9 MB, free: 3.352 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.01014, allocations: 5.969 kB / 426.9 MB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005137/0.01065, allocations: 1.509 MB / 428.4 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.01065, allocations: 0 / 428.4 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.01092, allocations: 334.4 kB / 428.7 MB, free: 1.668 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.807e-05/0.01094, allocations: 15.67 kB / 428.7 MB, free: 1.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.01095, allocations: 5.906 kB / 428.7 MB, free: 1.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.349e-05/0.01104, allocations: 17.02 kB / 428.7 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.434e-05/0.01108, allocations: 22.33 kB / 428.8 MB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.01108, allocations: 3.078 kB / 428.8 MB, free: 1.641 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001224/0.01121, allocations: 152.8 kB / 428.9 MB, free: 1.551 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01121, allocations: 0 / 428.9 MB, free: 1.551 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002584/0.01146, allocations: 38.86 kB / 429 MB, free: 1.543 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,C.x_scaled[1]) * 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 (13): * Single equations (assignments): 12 * 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.0003579/0.01182, allocations: 0.8643 MB / 429.8 MB, free: 0.793 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002943/0.01212, allocations: 351 kB / 430.2 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01212, allocations: 1.062 kB / 430.2 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.01225, allocations: 180.8 kB / 430.3 MB, free: 400 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001898/0.01244, allocations: 33.08 kB / 430.4 MB, free: 380 kB / 330.7 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.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.002043/0.01449, allocations: 2.243 MB / 432.6 MB, free: 14.72 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.01459, allocations: 117.7 kB / 432.7 MB, free: 14.64 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.906e-05/0.01465, allocations: 20.28 kB / 432.7 MB, free: 14.63 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.131e-05/0.01472, allocations: 53.02 kB / 432.8 MB, free: 14.59 MB / 346.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01472, allocations: 0 / 432.8 MB, free: 14.59 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01922/0.03394, allocations: 4.479 MB / 437.3 MB, free: 13.5 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.056/8.09, allocations: 5.188 kB / 437.3 MB, free: 13.5 MB / 346.7 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_case_studies_foo_fmu --startTime=0 --stopTime=2000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_case_studies_foo.fmu > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.974673475138843] Failed to read output from testmodel.py, exit status != 0: 8.184384652413428 8.197713921 8.191446588 Calling exit ...