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.0008483/0.0008484, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.001079/0.001079, allocations: 172.7 kB / 15.95 MB, free: 208 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.397/1.397, allocations: 205.4 MB / 222.1 MB, free: 5.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06153/0.06153, allocations: 14.17 MB / 284.6 MB, free: 6.98 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.0005241/0.0005242, allocations: 12 kB / 348.3 MB, free: 17.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1088, allocations: 51.12 MB / 399.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002575/0.1114, allocations: 1.478 MB / 400.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000485/0.1119, allocations: 147.5 kB / 401 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.1121, allocations: 3.938 kB / 401 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.1123, allocations: 11.88 kB / 401 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.1125, allocations: 23.83 kB / 401 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001031/0.1126, allocations: 23.98 kB / 401.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002126/0.1128, allocations: 111.7 kB / 401.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.113, allocations: 37.52 kB / 401.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.087e-05/0.113, allocations: 35.8 kB / 401.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.983e-05/0.1131, allocations: 39.77 kB / 401.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.697e-05/0.1132, allocations: 0 / 401.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.345e-05/0.1132, allocations: 4 kB / 401.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.21e-05/0.1132, allocations: 19.86 kB / 401.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.018e-05/0.1132, allocations: 37.64 kB / 401.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.1134, allocations: 79.84 kB / 401.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1134, allocations: 0 / 401.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1134, allocations: 4 kB / 401.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.1134, allocations: 0 / 401.4 MB, free: 12.5 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.0005559/0.1139, allocations: 410.8 kB / 401.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.114, allocations: 12.02 kB / 401.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.007e-05/0.1141, allocations: 46.55 kB / 401.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.847e-05/0.1141, allocations: 15.81 kB / 401.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.1144, allocations: 215.3 kB / 402.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.1145, allocations: 11.95 kB / 402.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.152e-05/0.1145, allocations: 12 kB / 402.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002428/0.1148, allocations: 108.2 kB / 402.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.1148, allocations: 4 kB / 402.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.1148, allocations: 7.984 kB / 402.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.1148, allocations: 0 / 402.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.115, allocations: 71.91 kB / 402.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006606/0.1157, allocations: 449.3 kB / 402.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003772/0.1161, allocations: 127.7 kB / 402.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.1162, allocations: 50.69 kB / 402.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.1162, allocations: 4 kB / 402.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.1162, allocations: 42.48 kB / 403 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.1163, allocations: 0 / 403 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003903/0.1167, allocations: 121.7 kB / 403.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.1167, allocations: 106.8 kB / 403.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.1169, allocations: 151 kB / 403.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.1169, allocations: 29.7 kB / 403.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.68e-05/0.117, allocations: 116.1 kB / 403.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.117, allocations: 23.64 kB / 403.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-06/0.117, allocations: 4 kB / 403.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1171, allocations: 318.8 kB / 403.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.634e-05/0.1172, allocations: 27.91 kB / 403.9 MB, free: 9.785 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.1174, allocations: 65.2 kB / 403.9 MB, free: 9.703 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.1175, allocations: 35.98 kB / 404 MB, free: 9.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1175, allocations: 4 kB / 404 MB, free: 9.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003756/0.1179, allocations: 142.5 kB / 404.1 MB, free: 9.516 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1179, allocations: 4 kB / 404.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.1179, allocations: 7.922 kB / 404.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002065/0.1181, allocations: 36.83 kB / 404.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.1182, allocations: 24.08 kB / 404.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001226/0.1195, allocations: 1.359 MB / 405.5 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.588e-05/0.1196, allocations: 16 kB / 405.6 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.1196, allocations: 4 kB / 405.6 MB, free: 7.93 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.0001195/0.1197, allocations: 129.7 kB / 405.7 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.986e-05/0.1198, allocations: 11.89 kB / 405.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.058e-05/0.1198, allocations: 12.31 kB / 405.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.1198, allocations: 0 / 405.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.073e-06/0.1198, allocations: 0 / 405.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1198, allocations: 0 / 405.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.1201, allocations: 217.5 kB / 405.9 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1201, allocations: 4 kB / 405.9 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.1202, allocations: 19.98 kB / 405.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.1202, allocations: 0 / 405.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.1203, allocations: 4 kB / 405.9 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1203, allocations: 0 / 405.9 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1203, allocations: 64 / 405.9 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003666/0.1206, allocations: 245 kB / 406.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.825e-05/0.1207, allocations: 88.94 kB / 406.3 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.1208, allocations: 8 kB / 406.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.1209, allocations: 8.062 kB / 406.3 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.364e-05/0.1209, allocations: 7.984 kB / 406.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.1209, allocations: 0 / 406.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.875e-05/0.121, allocations: 120.5 kB / 406.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1211, allocations: 0 / 406.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.1214, allocations: 23.91 kB / 406.4 MB, free: 6.945 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.0007043/0.1221, allocations: 0.7726 MB / 407.2 MB, free: 6.137 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004992/0.1226, allocations: 202.7 kB / 407.4 MB, free: 5.926 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.1226, allocations: 4 kB / 407.4 MB, free: 5.922 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.1227, allocations: 31.92 kB / 407.4 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.1231, allocations: 23.97 kB / 407.5 MB, free: 5.867 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.1246, allocations: 0.7738 MB / 408.2 MB, free: 5.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.125, allocations: 0.7013 MB / 408.9 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.807e-05/0.1251, allocations: 12.55 kB / 409 MB, free: 4.289 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.872e-05/0.1252, allocations: 39.36 kB / 409 MB, free: 4.25 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1252, allocations: 3.938 kB / 409 MB, free: 4.246 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01511/0.1403, allocations: 2.416 MB / 411.4 MB, free: 1.902 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.1405, allocations: 194.5 kB / 411.6 MB, free: 1.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/1.976, allocations: 0 / 411.6 MB, free: 1.66 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: