Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLag.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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 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(PowerGrids.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLag",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.001116/0.001116, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001256/0.001256, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05969/0.05969, allocations: 14.16 MB / 284.5 MB, free: 7.141 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007729/0.000773, allocations: 23.98 kB / 348.2 MB, free: 17.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1107, allocations: 51.11 MB / 399.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002232/0.1129, allocations: 1.476 MB / 400.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003241/0.1133, allocations: 143.6 kB / 401 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.518e-05/0.1134, allocations: 4 kB / 401 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.916e-05/0.1134, allocations: 11.86 kB / 401 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002315/0.1137, allocations: 39.88 kB / 401 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.104e-05/0.1138, allocations: 27.97 kB / 401 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001776/0.114, allocations: 79.84 kB / 401.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.1141, allocations: 33.52 kB / 401.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.174e-05/0.1142, allocations: 43.78 kB / 401.2 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.1143, allocations: 31.78 kB / 401.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.1143, allocations: 8 kB / 401.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.657e-05/0.1143, allocations: 4 kB / 401.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.528e-05/0.1144, allocations: 15.92 kB / 401.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.271e-05/0.1144, allocations: 41.64 kB / 401.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.598e-05/0.1145, allocations: 71.84 kB / 401.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1145, allocations: 0 / 401.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1145, allocations: 3.938 kB / 401.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1145, allocations: 0 / 401.4 MB, free: 12.6 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005493/0.1151, allocations: 403 kB / 401.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.1151, allocations: 16.02 kB / 401.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.962e-05/0.1152, allocations: 42.55 kB / 401.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.552e-05/0.1152, allocations: 15.81 kB / 401.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/0.1155, allocations: 211.3 kB / 402 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.1155, allocations: 15.94 kB / 402.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.782e-05/0.1155, allocations: 12 kB / 402.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.1158, allocations: 124.2 kB / 402.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.1158, allocations: 0 / 402.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.1158, allocations: 0 / 402.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.1158, allocations: 4 kB / 402.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.116, allocations: 63.95 kB / 402.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006047/0.1167, allocations: 449.3 kB / 402.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003658/0.117, allocations: 139.7 kB / 402.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.47e-05/0.1171, allocations: 0 / 402.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.1171, allocations: 38.69 kB / 402.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.1171, allocations: 0 / 402.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003765/0.1175, allocations: 125.5 kB / 403 MB, free: 10.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.1175, allocations: 110.8 kB / 403.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.1177, allocations: 143.2 kB / 403.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.988e-05/0.1178, allocations: 37.64 kB / 403.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.095e-05/0.1179, allocations: 111.9 kB / 403.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.663e-05/0.1179, allocations: 27.67 kB / 403.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-06/0.1179, allocations: 4 kB / 403.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002519/0.1182, allocations: 322.8 kB / 403.7 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.129e-05/0.1183, allocations: 19.98 kB / 403.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.1184, allocations: 65.14 kB / 403.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.1185, allocations: 35.94 kB / 403.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1185, allocations: 0 / 403.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004387/0.119, allocations: 142.3 kB / 404 MB, free: 9.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.119, allocations: 8 kB / 404 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.119, allocations: 0 / 404 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002078/0.1192, allocations: 40.92 kB / 404 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.1193, allocations: 23.86 kB / 404.1 MB, free: 9.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.1205, allocations: 1.37 MB / 405.4 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.674e-05/0.1206, allocations: 15.89 kB / 405.4 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.1206, allocations: 4 kB / 405.5 MB, free: 8.078 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (7): * Single equations (assignments): 6 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.1208, allocations: 117.8 kB / 405.6 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.29e-05/0.1208, allocations: 11.91 kB / 405.6 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.927e-05/0.1208, allocations: 16.3 kB / 405.6 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1208, allocations: 8.062 kB / 405.6 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.1208, allocations: 0 / 405.6 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1209, allocations: 0 / 405.6 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002949/0.1212, allocations: 209.9 kB / 405.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1212, allocations: 0 / 405.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.1213, allocations: 23.98 kB / 405.8 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1213, allocations: 0 / 405.8 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.1213, allocations: 0 / 405.8 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.1213, allocations: 7.938 kB / 405.8 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1213, allocations: 0 / 405.8 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003577/0.1217, allocations: 264.5 kB / 406.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.784e-05/0.1218, allocations: 92.98 kB / 406.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.1218, allocations: 4 kB / 406.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.1219, allocations: 7.984 kB / 406.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.1219, allocations: 0 / 406.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.1219, allocations: 11.94 kB / 406.2 MB, free: 7.203 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.1221, allocations: 124.6 kB / 406.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1221, allocations: 0 / 406.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002551/0.1223, allocations: 23.84 kB / 406.4 MB, free: 7.059 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (leadLag.firstOrder.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 (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007023/0.123, allocations: 0.9176 MB / 407.3 MB, free: 6.098 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000485/0.1235, allocations: 202.7 kB / 407.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.1235, allocations: 4.25 kB / 407.5 MB, free: 5.883 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.1237, allocations: 35.92 kB / 407.5 MB, free: 5.848 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.124, allocations: 27.73 kB / 407.5 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.1258, allocations: 1.23 MB / 408.8 MB, free: 4.523 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.1263, allocations: 0.7169 MB / 409.5 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.777e-05/0.1264, allocations: 12.55 kB / 409.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.366e-05/0.1264, allocations: 35.42 kB / 409.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1264, allocations: 0 / 409.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01312/0.1396, allocations: 2.389 MB / 411.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/0.1398, allocations: 190 kB / 412.1 MB, free: 1.172 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.02, allocations: 0 / 412.1 MB, free: 1.172 MB / 302.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestLeadLag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLeadLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) Environment - environmentSimulation: