Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_generator_models.SlidingPressure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.SlidingPressure") translateModel(AES.Coursework.ElecSys_generator_models.SlidingPressure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.SlidingPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 114.4 kB / 16.42 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009671/0.0009671, allocations: 189.2 kB / 17.35 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09424/0.09424, allocations: 22.33 MB / 313.5 MB, free: 8.844 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.91 kB / 437.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08432/0.08555, allocations: 54.95 MB / 492.7 MB, free: 4.719 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003308/0.08889, allocations: 2.374 MB / 495 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.0903, allocations: 0.7831 MB / 495.8 MB, free: 1.539 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001888/0.09051, allocations: 11.94 kB / 495.8 MB, free: 1.527 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.0907, allocations: 51.45 kB / 495.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.09087, allocations: 51.47 kB / 495.9 MB, free: 1.426 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004303/0.09131, allocations: 179.7 kB / 496.1 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.09167, allocations: 323.7 kB / 496.4 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000227/0.0919, allocations: 132.2 kB / 496.6 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.09203, allocations: 115.4 kB / 496.7 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/0.09218, allocations: 123.3 kB / 496.8 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.199e-05/0.09223, allocations: 24 kB / 496.8 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.396e-05/0.09227, allocations: 28 kB / 496.8 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.983e-05/0.09232, allocations: 55.78 kB / 496.9 MB, free: 476 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.09243, allocations: 131.2 kB / 497 MB, free: 344 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003213/0.09276, allocations: 314.5 kB / 497.3 MB, free: 28 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.09277, allocations: 7.938 kB / 497.3 MB, free: 20 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.09278, allocations: 4 kB / 497.3 MB, free: 16 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.09279, allocations: 0 / 497.3 MB, free: 16 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008229/0.09362, allocations: 0.6113 MB / 498 MB, free: 15.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.47e-05/0.09366, allocations: 8.031 kB / 498 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.451e-05/0.09373, allocations: 36.7 kB / 498 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.09414, allocations: 315.7 kB / 498.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.09416, allocations: 16.81 kB / 498.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/0.09421, allocations: 20.38 kB / 498.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004288/0.09464, allocations: 265.3 kB / 498.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.09466, allocations: 0 / 498.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.09469, allocations: 12 kB / 498.6 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.09471, allocations: 4 kB / 498.6 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003519/0.09506, allocations: 157.6 kB / 498.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.09641, allocations: 1.038 MB / 499.8 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000412/0.09683, allocations: 194.8 kB / 0.4883 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.09702, allocations: 80.92 kB / 0.4884 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.09706, allocations: 7.969 kB / 0.4884 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.09708, allocations: 34.56 kB / 0.4884 GB, free: 13.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.633e-06/0.09709, allocations: 0 / 0.4884 GB, free: 13.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.000575/0.09767, allocations: 253.2 kB / 0.4886 GB, free: 12.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.09772, allocations: 85.05 kB / 0.4887 GB, free: 12.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.09798, allocations: 272.6 kB / 0.489 GB, free: 12.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.09801, allocations: 29.7 kB / 0.489 GB, free: 12.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.09812, allocations: 184.2 kB / 0.4892 GB, free: 12.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.612e-05/0.09818, allocations: 67.48 kB / 0.4893 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.117e-05/0.09825, allocations: 41.7 kB / 0.4893 GB, free: 12.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.09837, allocations: 342.8 kB / 0.4896 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.09854, allocations: 64.83 kB / 0.4897 GB, free: 11.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001824/0.09873, allocations: 114 kB / 0.4898 GB, free: 11.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009119/0.09965, allocations: 346.1 kB / 0.4901 GB, free: 11.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.09967, allocations: 0 / 0.4901 GB, free: 11.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004493/0.1001, allocations: 245.2 kB / 0.4904 GB, free: 10.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.1001, allocations: 8.156 kB / 0.4904 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1002, allocations: 4 kB / 0.4904 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1002, allocations: 0 / 0.4904 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.1004, allocations: 51.91 kB / 0.4904 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.1004, allocations: 0 / 0.4904 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.1005, allocations: 23.89 kB / 0.4904 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.1006, allocations: 4 kB / 0.4904 GB, free: 10.84 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002334/0.1008, allocations: 162.7 kB / 0.4906 GB, free: 10.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001472/0.101, allocations: 102 kB / 0.4907 GB, free: 10.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007137/0.1017, allocations: 311.9 kB / 0.491 GB, free: 10.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.342e-06/0.1017, allocations: 0 / 0.491 GB, free: 10.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003558/0.1021, allocations: 231.9 kB / 0.4912 GB, free: 10.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.456e-06/0.1021, allocations: 9.969 kB / 0.4912 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-06/0.1021, allocations: 0 / 0.4912 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.791e-06/0.1021, allocations: 8 kB / 0.4912 GB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.1023, allocations: 35.98 kB / 0.4913 GB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.1023, allocations: 7.938 kB / 0.4913 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.1024, allocations: 19.88 kB / 0.4913 GB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.1024, allocations: 8 kB / 0.4913 GB, free: 9.922 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 2 (PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.1026, allocations: 205.8 kB / 0.4915 GB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.184e-05/0.1026, allocations: 31.75 kB / 0.4915 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.181e-05/0.1027, allocations: 34.31 kB / 0.4916 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.1027, allocations: 0 / 0.4916 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1027, allocations: 0 / 0.4916 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.402e-05/0.1028, allocations: 120.8 kB / 0.4917 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.1029, allocations: 8 kB / 0.4917 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.103, allocations: 11.88 kB / 0.4917 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.266e-05/0.1031, allocations: 15.98 kB / 0.4917 GB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005994/0.1037, allocations: 276.9 kB / 0.492 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006214/0.1043, allocations: 469.2 kB / 0.4924 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001619/0.1045, allocations: 79.88 kB / 0.4925 GB, free: 8.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001616/0.1047, allocations: 195.1 kB / 0.4927 GB, free: 8.465 MB / 382.1 MB Notification: Performance of Backend: time 3.8e-07/0.1047, allocations: 0 / 0.4927 GB, free: 8.465 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006739/0.1053, allocations: 278.4 kB / 0.4929 GB, free: 8.184 MB / 382.1 MB Notification: Performance of SimCode: time 0.001012/0.1064, allocations: 0.9922 MB / 0.4939 GB, free: 7.145 MB / 382.1 MB Notification: Performance of Templates: time 0.007021/0.1134, allocations: 3.713 MB / 0.4975 GB, free: 3.457 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.makefile (rm -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.sim & ./AES_AES.Coursework.ElecSys_generator_models.SlidingPressure -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)