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.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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.0009138/0.0009136, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.005719/0.005719, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.195/1.195, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05511/0.05511, allocations: 14.16 MB / 284.9 MB, free: 7.043 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.0004966/0.0004965, allocations: 16 kB / 348.9 MB, free: 17.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07109/0.0716, allocations: 51.1 MB / 400 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.001805/0.07343, allocations: 1.513 MB / 401.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003105/0.07376, allocations: 155.5 kB / 401.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.962e-05/0.07385, allocations: 4 kB / 401.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001003/0.07396, allocations: 11.86 kB / 401.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.07409, allocations: 27.84 kB / 401.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.132e-05/0.07418, allocations: 31.97 kB / 401.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001563/0.07435, allocations: 115.6 kB / 401.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.07449, allocations: 53.31 kB / 401.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.352e-05/0.07455, allocations: 35.8 kB / 402 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.358e-05/0.07465, allocations: 47.7 kB / 402 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.825e-05/0.07468, allocations: 0 / 402 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.49e-05/0.0747, allocations: 4 kB / 402 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.174e-05/0.07473, allocations: 11.92 kB / 402 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.409e-05/0.07479, allocations: 69.38 kB / 402.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.07491, allocations: 91.66 kB / 402.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.07492, allocations: 0 / 402.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.07493, allocations: 4 kB / 402.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.487e-06/0.07493, allocations: 0 / 402.2 MB, free: 12.05 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.0005092/0.07545, allocations: 403.1 kB / 402.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.07549, allocations: 15.97 kB / 402.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.669e-05/0.07554, allocations: 38.73 kB / 402.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.278e-05/0.07559, allocations: 20.75 kB / 402.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002166/0.07581, allocations: 220.5 kB / 402.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.07583, allocations: 12.31 kB / 402.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.135e-05/0.07587, allocations: 12.38 kB / 402.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002413/0.07612, allocations: 116.2 kB / 403 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.07613, allocations: 0 / 403 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.07615, allocations: 4 kB / 403 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.07617, allocations: 4 kB / 403 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002149/0.07639, allocations: 71.89 kB / 403.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006054/0.077, allocations: 457.2 kB / 403.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003832/0.0774, allocations: 119.8 kB / 403.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.07753, allocations: 50.62 kB / 403.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.07756, allocations: 0 / 403.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.07758, allocations: 42.48 kB / 403.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.07759, allocations: 4 kB / 403.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004065/0.07801, allocations: 129.5 kB / 403.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.07806, allocations: 106.8 kB / 404 MB, free: 10.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.0782, allocations: 150.4 kB / 404.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.07822, allocations: 25.7 kB / 404.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/0.0783, allocations: 116.2 kB / 404.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.07833, allocations: 27.55 kB / 404.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.07837, allocations: 17.72 kB / 404.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.758e-05/0.07847, allocations: 322.8 kB / 404.6 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.92e-05/0.07858, allocations: 19.98 kB / 404.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.07871, allocations: 73.08 kB / 404.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.07893, allocations: 79.59 kB / 404.8 MB, free: 9.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.07894, allocations: 4 kB / 404.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000387/0.07934, allocations: 146.3 kB / 404.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.07936, allocations: 4 kB / 404.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.07937, allocations: 4 kB / 404.9 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001901/0.07957, allocations: 40.86 kB / 405 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.07969, allocations: 15.98 kB / 405 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001057/0.08075, allocations: 1.366 MB / 406.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.08087, allocations: 8.031 kB / 406.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.08089, allocations: 192 / 406.4 MB, free: 7.395 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.425e-05/0.08099, allocations: 125.8 kB / 406.5 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.061e-05/0.08104, allocations: 15.75 kB / 406.5 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.255e-05/0.08107, allocations: 24.23 kB / 406.5 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.08108, allocations: 4.062 kB / 406.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.08109, allocations: 7.938 kB / 406.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.0811, allocations: 0 / 406.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002144/0.08132, allocations: 205.6 kB / 406.8 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.08133, allocations: 0 / 406.8 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.08147, allocations: 15.98 kB / 406.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.08148, allocations: 7.938 kB / 406.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.08149, allocations: 0 / 406.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.0815, allocations: 0 / 406.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.08151, allocations: 7.938 kB / 406.8 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000369/0.08189, allocations: 229.1 kB / 407 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.973e-05/0.08195, allocations: 92.98 kB / 407.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.08197, allocations: 12.11 kB / 407.1 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.0821, allocations: 4 kB / 407.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.08215, allocations: 19.86 kB / 407.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-06/0.08216, allocations: 4 kB / 407.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.213e-05/0.08225, allocations: 119.9 kB / 407.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08226, allocations: 0 / 407.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002853/0.08255, allocations: 19.91 kB / 407.3 MB, free: 6.395 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 (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.0005167/0.08307, allocations: 0.7765 MB / 408.1 MB, free: 5.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003657/0.08345, allocations: 202.7 kB / 408.2 MB, free: 5.371 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.08346, allocations: 0 / 408.2 MB, free: 5.371 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.43e-05/0.08356, allocations: 32.23 kB / 408.3 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.08387, allocations: 27.98 kB / 408.3 MB, free: 5.312 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.0856, allocations: 1.766 MB / 410.1 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002016/0.08581, allocations: 0.7121 MB / 410.8 MB, free: 2.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.437e-05/0.08587, allocations: 8.562 kB / 410.8 MB, free: 2.684 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.134e-05/0.08593, allocations: 31.42 kB / 410.8 MB, free: 2.652 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.08594, allocations: 0 / 410.8 MB, free: 2.652 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.183/2.269, allocations: 2.466 MB / 413.3 MB, free: 252 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/2.269, allocations: 208.3 kB / 413.5 MB, free: 15.99 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.503/3.772, allocations: 0 / 413.5 MB, free: 15.99 MB / 318.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/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.mat --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) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches