Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Devel_test_models.Test_analogue_PI_awfb_full.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: "" <> buildModelFMU(AES.Devel_test_models.Test_analogue_PI_awfb_full,fileNamePrefix="AES_AES_Devel_test_models_Test_analogue_PI_awfb_full",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Devel_test_models.Test_analogue_PI_awfb_full,fileNamePrefix="AES_AES_Devel_test_models_Test_analogue_PI_awfb_full",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005374/0.005374, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.001249/0.001249, allocations: 187 kB / 16.67 MB, free: 5.969 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09307/0.09307, allocations: 22.33 MB / 312.9 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 68.12 kB / 434.4 MB, free: 14.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.09436, allocations: 54.96 MB / 489.4 MB, free: 7.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Devel_test_models.Test_analogue_PI_awfb_full): time 0.00269/0.09708, allocations: 1.736 MB / 491.1 MB, free: 5.613 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003707/0.09747, allocations: 155.4 kB / 491.3 MB, free: 5.461 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.217e-05/0.09758, allocations: 4 kB / 491.3 MB, free: 5.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.09771, allocations: 19.73 kB / 491.3 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.09787, allocations: 27.78 kB / 491.3 MB, free: 5.41 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0001394/0.09801, allocations: 47.94 kB / 491.4 MB, free: 5.363 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001837/0.09821, allocations: 139.7 kB / 491.5 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.09837, allocations: 76.2 kB / 491.6 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.911e-05/0.09845, allocations: 55.78 kB / 491.6 MB, free: 5.094 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.09856, allocations: 75.61 kB / 491.7 MB, free: 5.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.0986, allocations: 15.98 kB / 491.7 MB, free: 5.004 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.955e-05/0.09862, allocations: 12 kB / 491.7 MB, free: 4.992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.525e-05/0.09866, allocations: 35.92 kB / 491.8 MB, free: 4.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.028e-05/0.09873, allocations: 67.53 kB / 491.8 MB, free: 4.891 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.09891, allocations: 127.4 kB / 492 MB, free: 4.766 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.09892, allocations: 4 kB / 492 MB, free: 4.762 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.09893, allocations: 0 / 492 MB, free: 4.762 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.09894, allocations: 4 kB / 492 MB, free: 4.758 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0006019/0.09955, allocations: 450.8 kB / 492.4 MB, free: 4.266 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.09959, allocations: 8.031 kB / 492.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.144e-05/0.09965, allocations: 50.73 kB / 492.5 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.372e-05/0.0997, allocations: 20.84 kB / 492.5 MB, free: 4.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002316/0.09994, allocations: 208.1 kB / 492.7 MB, free: 3.938 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.09998, allocations: 12.38 kB / 492.7 MB, free: 3.926 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.711e-05/0.1, allocations: 24.33 kB / 492.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003602/0.1004, allocations: 153.7 kB / 492.9 MB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.1004, allocations: 7.875 kB / 492.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.1004, allocations: 4 kB / 492.9 MB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1004, allocations: 11.94 kB / 492.9 MB, free: 3.723 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000363/0.1008, allocations: 119.9 kB / 493 MB, free: 3.605 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008065/0.1016, allocations: 0.4924 MB / 493.5 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002857/0.1019, allocations: 110.5 kB / 493.6 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/0.1021, allocations: 72.81 kB / 493.7 MB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.1022, allocations: 4 kB / 493.7 MB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.1022, allocations: 38.5 kB / 493.7 MB, free: 2.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.263e-06/0.1022, allocations: 0 / 493.7 MB, free: 2.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006708/0.1029, allocations: 225.7 kB / 494 MB, free: 2.594 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.1029, allocations: 55.41 kB / 494 MB, free: 2.527 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.933e-05/0.103, allocations: 129.8 kB / 494.1 MB, free: 2.391 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.1031, allocations: 29.7 kB / 494.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.417e-05/0.1031, allocations: 120.5 kB / 494.3 MB, free: 2.234 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.318e-05/0.1032, allocations: 75.41 kB / 494.4 MB, free: 2.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.897e-05/0.1033, allocations: 41.7 kB / 494.4 MB, free: 2.113 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1034, allocations: 326.8 kB / 494.7 MB, free: 1.785 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.1036, allocations: 55.95 kB / 494.8 MB, free: 1.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.1038, allocations: 85.67 kB / 494.9 MB, free: 1.641 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003616/0.1042, allocations: 138 kB / 495 MB, free: 1.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1042, allocations: 0 / 495 MB, free: 1.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004638/0.1046, allocations: 205.4 kB / 495.2 MB, free: 1.293 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.1047, allocations: 8 kB / 495.2 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1047, allocations: 0 / 495.2 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.1047, allocations: 0 / 495.2 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.1051, allocations: 59.89 kB / 495.3 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1051, allocations: 0 / 495.3 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.1053, allocations: 27.88 kB / 495.3 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.1053, allocations: 7.984 kB / 495.3 MB, free: 1.191 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (ts.y,C.LOsat,C.HIsat,C.noDec,C.noInc) * 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.000111/0.1055, allocations: 142.5 kB / 495.4 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.1055, allocations: 15.84 kB / 495.5 MB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005309/0.106, allocations: 198.4 kB / 495.6 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1061, allocations: 4 kB / 495.6 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1061, allocations: 7.938 kB / 495.7 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.1061, allocations: 4 kB / 495.7 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002629/0.1063, allocations: 257.5 kB / 495.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1064, allocations: 0 / 495.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.1066, allocations: 47.97 kB / 496 MB, free: 472 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.1067, allocations: 3.938 kB / 496 MB, free: 468 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.1067, allocations: 3.984 kB / 496 MB, free: 464 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1067, allocations: 4 kB / 496 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1067, allocations: 0 / 496 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006838/0.1074, allocations: 356.7 kB / 496.3 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.09e-05/0.1075, allocations: 96.89 kB / 496.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.99e-05/0.1075, allocations: 8 kB / 496.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.1077, allocations: 15.98 kB / 496.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.566e-05/0.1078, allocations: 47.92 kB / 496.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.1078, allocations: 4 kB / 496.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.344e-05/0.1079, allocations: 97.94 kB / 496.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1079, allocations: 0 / 496.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.1081, allocations: 35.94 kB / 496.6 MB, free: 15.77 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (C.xfb,C.xBias,C.u,C.csfil,P.y) * Number of discrete variables: 5 (C.noInc,C.noDec,C.HIsat,C.LOsat,ts.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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 Backend phase and start with SimCode phase: time 0.0009561/0.1091, allocations: 0.8893 MB / 497.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000459/0.1096, allocations: 155.9 kB / 497.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1096, allocations: 0 / 497.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.1098, allocations: 87.97 kB / 497.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.1101, allocations: 19.92 kB / 497.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.1126, allocations: 1.983 MB / 499.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.1129, allocations: 0.7202 MB / 0.4887 GB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.113, allocations: 21.42 kB / 0.4888 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.843e-05/0.1131, allocations: 51.42 kB / 0.4888 GB, free: 11.72 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1131, allocations: 0 / 0.4888 GB, free: 11.72 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.1321, allocations: 3.523 MB / 0.4922 GB, free: 8.266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.375/7.507, allocations: 11 kB / 0.4923 GB, free: 8.258 MB / 382.1 MB (rm -f AES_AES.Devel_test_models.Test_analogue_PI_awfb_full.pipe ; mkfifo AES_AES.Devel_test_models.Test_analogue_PI_awfb_full.pipe ; head -c 1048576 < AES_AES.Devel_test_models.Test_analogue_PI_awfb_full.pipe >> ../files/AES_AES.Devel_test_models.Test_analogue_PI_awfb_full.sim & python3 -m fmpy simulate --output-file AES_AES.Devel_test_models.Test_analogue_PI_awfb_full_res.csv --start-time 0 --stop-time 120 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 AES_AES_Devel_test_models_Test_analogue_PI_awfb_full.fmu > AES_AES.Devel_test_models.Test_analogue_PI_awfb_full.pipe 2>&1)