Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Controls_Test_TestLeadLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_symb_jac_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.001048/0.001048, allocations: 97.52 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 173.7 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.744/1.744, allocations: 205.4 MB / 222.7 MB, free: 5.621 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06373/0.06373, allocations: 14.15 MB / 285.2 MB, free: 7.113 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.0005389/0.000539, allocations: 20 kB / 348.9 MB, free: 17.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1121, allocations: 51.11 MB / 400 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002348/0.1145, allocations: 1.477 MB / 401.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004568/0.115, allocations: 147.6 kB / 401.6 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.1152, allocations: 3.938 kB / 401.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.163e-05/0.1152, allocations: 7.922 kB / 401.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002469/0.1155, allocations: 35.88 kB / 401.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001075/0.1156, allocations: 31.97 kB / 401.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003324/0.1159, allocations: 79.84 kB / 401.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.1161, allocations: 41.44 kB / 401.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.1162, allocations: 35.8 kB / 401.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.1163, allocations: 47.75 kB / 401.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.391e-05/0.1164, allocations: 4 kB / 401.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.987e-05/0.1164, allocations: 4 kB / 401.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.05e-05/0.1164, allocations: 7.938 kB / 401.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.599e-05/0.1165, allocations: 41.64 kB / 401.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.1166, allocations: 75.84 kB / 402 MB, free: 12.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1166, allocations: 0 / 402 MB, free: 12.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1166, allocations: 3.938 kB / 402 MB, free: 12.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.1166, allocations: 0 / 402 MB, free: 12.57 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.0006215/0.1172, allocations: 407 kB / 402.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.1173, allocations: 16 kB / 402.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.357e-05/0.1174, allocations: 42.5 kB / 402.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.067e-05/0.1174, allocations: 11.81 kB / 402.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.1177, allocations: 219.4 kB / 402.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.1178, allocations: 7.953 kB / 402.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.152e-05/0.1178, allocations: 8 kB / 402.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002652/0.1181, allocations: 124.2 kB / 402.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1181, allocations: 0 / 402.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.1181, allocations: 4 kB / 402.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.1181, allocations: 4 kB / 402.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002081/0.1183, allocations: 63.89 kB / 402.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007313/0.1191, allocations: 449.3 kB / 403.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003842/0.1195, allocations: 131.9 kB / 403.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.1195, allocations: 0 / 403.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.1195, allocations: 38.62 kB / 403.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/0.1196, allocations: 0 / 403.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004049/0.12, allocations: 125.4 kB / 403.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.823e-05/0.12, allocations: 106.8 kB / 403.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.1202, allocations: 151.2 kB / 403.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.1202, allocations: 33.7 kB / 403.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.488e-05/0.1203, allocations: 111.9 kB / 404 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.1203, allocations: 27.64 kB / 404.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-06/0.1204, allocations: 0 / 404.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.1205, allocations: 322.8 kB / 404.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.716e-05/0.1206, allocations: 19.98 kB / 404.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.1207, allocations: 77.06 kB / 404.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.625e-05/0.1208, allocations: 31.92 kB / 404.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1208, allocations: 0 / 404.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003606/0.1212, allocations: 146.3 kB / 404.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1212, allocations: 4 kB / 404.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1212, allocations: 320 / 404.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002269/0.1215, allocations: 44.84 kB / 404.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.1216, allocations: 19.92 kB / 404.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/0.1227, allocations: 1.374 MB / 406.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.258e-05/0.1228, allocations: 7.938 kB / 406.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.1229, allocations: 4 kB / 406.1 MB, free: 8.059 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 9.184e-05/0.123, allocations: 121.8 kB / 406.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.123, allocations: 15.89 kB / 406.2 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.571e-05/0.123, allocations: 8.312 kB / 406.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.123, allocations: 8.062 kB / 406.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.1231, allocations: 0 / 406.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1231, allocations: 0 / 406.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000219/0.1233, allocations: 209.6 kB / 406.4 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1233, allocations: 0 / 406.4 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.1234, allocations: 27.92 kB / 406.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1234, allocations: 0 / 406.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.1234, allocations: 0 / 406.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1235, allocations: 4 kB / 406.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1235, allocations: 0 / 406.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.1249, allocations: 1.294 MB / 407.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.1249, allocations: 93.05 kB / 407.9 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.1249, allocations: 0 / 407.9 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.125, allocations: 7.984 kB / 407.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.1251, allocations: 11.94 kB / 407.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.1251, allocations: 8 kB / 407.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.874e-05/0.1252, allocations: 116.5 kB / 408 MB, free: 5.914 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1252, allocations: 0 / 408 MB, free: 5.914 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.1256, allocations: 23.94 kB / 408 MB, free: 5.891 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.0008008/0.1264, allocations: 0.9369 MB / 409 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004742/0.1269, allocations: 194.6 kB / 409.2 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.1269, allocations: 4.25 kB / 409.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.127, allocations: 35.92 kB / 409.2 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.1273, allocations: 19.98 kB / 409.2 MB, free: 4.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.1288, allocations: 1.35 MB / 410.6 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.1291, allocations: 0.7082 MB / 411.3 MB, free: 2.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.364e-05/0.1292, allocations: 8.562 kB / 411.3 MB, free: 2.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.146e-05/0.1293, allocations: 27.42 kB / 411.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1293, allocations: 0 / 411.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01389/0.1432, allocations: 2.473 MB / 413.8 MB, free: 56 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.1434, allocations: 201.2 kB / 414 MB, free: 15.81 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/1.978, allocations: 0 / 414 MB, free: 15.81 MB / 318.1 MB (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_symb_jac_PowerGrids_Controls_Test_TestLeadLag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerGrids_symb_jac_PowerGrids_Controls_Test_TestLeadLag.fmu > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) Environment - environmentSimulation: