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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002463/0.002463, allocations: 215.6 kB / 22.25 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 207.6 MB / 233 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.07061/0.07061, allocations: 14.39 MB / 299.7 MB, free: 7.43 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002394/0.002394, allocations: 71.89 kB / 423 MB, free: 36.92 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08944/0.09183, allocations: 52.9 MB / 475.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003296/0.09513, allocations: 1.814 MB / 477.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004356/0.09557, allocations: 151.5 kB / 477.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.09568, allocations: 3.938 kB / 477.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.09582, allocations: 27.67 kB / 477.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.096, allocations: 35.78 kB / 477.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001308/0.09614, allocations: 39.95 kB / 477.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002111/0.09635, allocations: 127.6 kB / 478.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.0965, allocations: 53.42 kB / 478.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.328e-05/0.09658, allocations: 43.86 kB / 478.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/0.0967, allocations: 55.7 kB / 478.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.09673, allocations: 8 kB / 478.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.166e-05/0.09675, allocations: 12 kB / 478.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.021e-05/0.09678, allocations: 15.92 kB / 478.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.424e-05/0.09685, allocations: 59.61 kB / 478.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001849/0.09703, allocations: 103.6 kB / 478.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.09704, allocations: 0 / 478.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09704, allocations: 0 / 478.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.09705, allocations: 7.922 kB / 478.4 MB, free: 13.38 MB / 350.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.0006567/0.0977, allocations: 353.7 kB / 478.8 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.09776, allocations: 8.031 kB / 478.8 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.425e-05/0.0978, allocations: 42.73 kB / 478.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.976e-05/0.09785, allocations: 16.84 kB / 478.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.09817, allocations: 166.8 kB / 479 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.09819, allocations: 8.375 kB / 479 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.09822, allocations: 12.38 kB / 479 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.09849, allocations: 120.1 kB / 479.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.0985, allocations: 0 / 479.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.09851, allocations: 4 kB / 479.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.09852, allocations: 8 kB / 479.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.09873, allocations: 63.89 kB / 479.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007675/0.0995, allocations: 412.4 kB / 479.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004396/0.09994, allocations: 119.8 kB / 479.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.1001, allocations: 42.62 kB / 479.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.1001, allocations: 4 kB / 479.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.1001, allocations: 42.5 kB / 479.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.1001, allocations: 0 / 479.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004102/0.1005, allocations: 121.5 kB / 479.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.649e-05/0.1006, allocations: 107.1 kB / 480 MB, free: 11.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.1008, allocations: 150.4 kB / 480.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.1008, allocations: 25.7 kB / 480.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.835e-05/0.1009, allocations: 116 kB / 480.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.1009, allocations: 27.75 kB / 480.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.192e-05/0.101, allocations: 25.72 kB / 480.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1011, allocations: 322.8 kB / 480.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.686e-05/0.1012, allocations: 23.92 kB / 480.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.1013, allocations: 65.12 kB / 480.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002181/0.1016, allocations: 87.62 kB / 480.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1016, allocations: 4 kB / 480.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003947/0.102, allocations: 134.3 kB / 481 MB, free: 10.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.102, allocations: 4 kB / 481 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.102, allocations: 4 kB / 481 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002298/0.1022, allocations: 44.86 kB / 481 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.1023, allocations: 15.98 kB / 481.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.1037, allocations: 1.354 MB / 482.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.1038, allocations: 15.88 kB / 482.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.818e-06/0.1038, allocations: 3.938 kB / 482.4 MB, free: 8.949 MB / 350.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 0.0001117/0.104, allocations: 121.8 kB / 482.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.104, allocations: 7.953 kB / 482.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.104, allocations: 24.39 kB / 482.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.104, allocations: 0 / 482.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.104, allocations: 4 kB / 482.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.104, allocations: 0 / 482.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.1043, allocations: 180.7 kB / 482.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1043, allocations: 0 / 482.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.1044, allocations: 23.92 kB / 482.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1044, allocations: 0 / 482.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.1044, allocations: 7.938 kB / 482.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1044, allocations: 0 / 482.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1044, allocations: 0 / 482.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.1048, allocations: 237.2 kB / 483 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.376e-05/0.1048, allocations: 11.95 kB / 483 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.1048, allocations: 3.938 kB / 483 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.1049, allocations: 12.05 kB / 483.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.105, allocations: 7.922 kB / 483.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.105, allocations: 8 kB / 483.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.502e-05/0.1051, allocations: 116 kB / 483.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1051, allocations: 0 / 483.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.1054, allocations: 19.94 kB / 483.2 MB, free: 8.109 MB / 350.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.0007414/0.1061, allocations: 0.7725 MB / 484 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005782/0.1067, allocations: 194.8 kB / 484.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.1067, allocations: 0 / 484.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.1068, allocations: 27.98 kB / 484.2 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.1072, allocations: 23.59 kB / 484.2 MB, free: 7.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.1098, allocations: 1.736 MB / 486 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.1102, allocations: 0.704 MB / 486.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.561e-05/0.1102, allocations: 16.42 kB / 486.7 MB, free: 4.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.322e-05/0.1103, allocations: 35.42 kB / 486.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1103, allocations: 0 / 486.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.1448, allocations: 2.926 MB / 489.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.45, allocations: 11.94 kB / 489.6 MB, free: 1.508 MB / 350.1 MB " [Timeout remaining time 647] (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 --stepSize=0.02 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLeadLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.300263850018382]