Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.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.TestDerivativeLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestDerivativeLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag",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.001001/0.001001, 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.0009805/0.0009805, 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.656/1.656, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.059/0.059, 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.0005036/0.0005038, allocations: 23.98 kB / 348.2 MB, free: 17.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1067, allocations: 51.11 MB / 399.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.001879/0.1087, allocations: 1.496 MB / 400.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003094/0.109, allocations: 163.5 kB / 401 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.1091, allocations: 7.938 kB / 401 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.246e-05/0.1091, allocations: 3.938 kB / 401 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.1093, allocations: 39.88 kB / 401.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.572e-05/0.1094, allocations: 35.91 kB / 401.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.1096, allocations: 79.84 kB / 401.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.1097, allocations: 37.5 kB / 401.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.566e-05/0.1098, allocations: 39.78 kB / 401.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.03e-05/0.1099, allocations: 27.8 kB / 401.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.1099, allocations: 4 kB / 401.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.178e-05/0.1099, allocations: 3.938 kB / 401.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.221e-05/0.11, allocations: 19.92 kB / 401.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.145e-05/0.11, allocations: 41.64 kB / 401.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.072e-05/0.1101, allocations: 67.86 kB / 401.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.1101, allocations: 0 / 401.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1101, allocations: 0 / 401.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.1101, allocations: 0 / 401.4 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005056/0.1106, allocations: 399.2 kB / 401.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.1107, allocations: 12.02 kB / 401.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.323e-05/0.1107, allocations: 50.55 kB / 401.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.844e-05/0.1108, allocations: 15.81 kB / 401.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.111, allocations: 210.8 kB / 402.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.111, allocations: 12.14 kB / 402.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.766e-05/0.1111, allocations: 12 kB / 402.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002472/0.1113, allocations: 135.2 kB / 402.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.1113, allocations: 0 / 402.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.1114, allocations: 8 kB / 402.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.1114, allocations: 0 / 402.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.1116, allocations: 67.89 kB / 402.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006896/0.1123, allocations: 0.5991 MB / 402.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.1125, allocations: 111.7 kB / 403 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.1126, allocations: 4.25 kB / 403 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.1126, allocations: 38.52 kB / 403.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.1126, allocations: 4 kB / 403.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003584/0.113, allocations: 117.6 kB / 403.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.113, allocations: 110.8 kB / 403.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.1132, allocations: 150.6 kB / 403.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.1132, allocations: 33.7 kB / 403.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.588e-05/0.1133, allocations: 123.7 kB / 403.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.1133, allocations: 23.66 kB / 403.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-06/0.1133, allocations: 0 / 403.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.1135, allocations: 322.8 kB / 403.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.387e-05/0.1136, allocations: 19.98 kB / 403.9 MB, free: 9.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.1137, allocations: 81.86 kB / 404 MB, free: 9.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.655e-05/0.1138, allocations: 35.98 kB / 404.1 MB, free: 9.605 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1138, allocations: 4.031 kB / 404.1 MB, free: 9.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000235/0.1141, allocations: 117.4 kB / 404.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.1141, allocations: 4 kB / 404.2 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.1141, allocations: 11.89 kB / 404.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.1141, allocations: 0 / 404.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.1143, allocations: 28.14 kB / 404.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.1143, allocations: 4 kB / 404.2 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.245e-05/0.1144, allocations: 19.83 kB / 404.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.1144, allocations: 4 kB / 404.2 MB, free: 9.41 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (derivativeLag.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 0.0001036/0.1145, allocations: 125.8 kB / 404.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.25e-05/0.1145, allocations: 7.906 kB / 404.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.1146, allocations: 12.62 kB / 404.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1146, allocations: 3.953 kB / 404.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.1146, allocations: 11.98 kB / 404.4 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.1146, allocations: 7.984 kB / 404.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002124/0.1148, allocations: 205.6 kB / 404.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.1148, allocations: 0 / 404.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.115, allocations: 15.98 kB / 404.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.115, allocations: 4 kB / 404.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.115, allocations: 4 kB / 404.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.115, allocations: 0 / 404.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.115, allocations: 3.953 kB / 404.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003754/0.1154, allocations: 264.4 kB / 404.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.471e-05/0.1154, allocations: 88.91 kB / 405 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.1155, allocations: 4 kB / 405 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.683e-05/0.1156, allocations: 11.98 kB / 405 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.1156, allocations: 4 kB / 405 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.1156, allocations: 3.984 kB / 405 MB, free: 8.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.319e-05/0.1157, allocations: 111.3 kB / 405.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.703e-06/0.1157, allocations: 0 / 405.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002366/0.116, allocations: 15.94 kB / 405.1 MB, free: 8.41 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (derivativeLag.integrator.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.000673/0.1166, allocations: 0.9291 MB / 406.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.1169, allocations: 72.03 kB / 406.1 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1169, allocations: 3.938 kB / 406.1 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.156e-05/0.117, allocations: 36.3 kB / 406.2 MB, free: 7.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.1173, allocations: 23.98 kB / 406.2 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.1188, allocations: 1.477 MB / 407.7 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.1192, allocations: 0.7158 MB / 408.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.709e-05/0.1192, allocations: 8.812 kB / 408.4 MB, free: 5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.703e-05/0.1193, allocations: 35.42 kB / 408.4 MB, free: 4.965 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1193, allocations: 0 / 408.4 MB, free: 4.965 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01264/0.132, allocations: 2.141 MB / 410.6 MB, free: 2.898 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.1322, allocations: 168.9 kB / 410.7 MB, free: 2.656 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/1.929, allocations: 0 / 410.7 MB, free: 2.656 MB / 302.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) Environment - environmentSimulation: