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.0007816/0.0007816, allocations: 72.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.000815/0.000815, allocations: 165.9 kB / 22.45 MB, free: 2.094 MB / 18.57 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 0.8895/0.8895, allocations: 158.6 MB / 184.2 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] 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.03822/0.03822, allocations: 10.65 MB / 247.1 MB, free: 4.805 MB / 234.7 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: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 370.5 MB, free: 4.062 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.918e-05/2.098e-05, allocations: 2.281 kB / 370.5 MB, free: 4.059 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002136/0.002157, allocations: 1.749 MB / 372.2 MB, free: 2.289 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003076/0.002465, allocations: 151.5 kB / 372.3 MB, free: 2.141 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.215e-05/0.002557, allocations: 7.938 kB / 372.4 MB, free: 2.133 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.002681, allocations: 15.8 kB / 372.4 MB, free: 2.117 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001425/0.002824, allocations: 35.67 kB / 372.4 MB, free: 2.082 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.346e-05/0.002897, allocations: 35.95 kB / 372.4 MB, free: 2.047 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001432/0.003041, allocations: 139.6 kB / 372.6 MB, free: 1.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.003178, allocations: 33.5 kB / 372.6 MB, free: 1.879 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.869e-05/0.003256, allocations: 71.81 kB / 372.7 MB, free: 1.809 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.581e-05/0.003342, allocations: 35.89 kB / 372.7 MB, free: 1.773 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.00337, allocations: 12 kB / 372.7 MB, free: 1.762 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.188e-05/0.003382, allocations: 8 kB / 372.7 MB, free: 1.754 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.638e-05/0.003408, allocations: 31.84 kB / 372.8 MB, free: 1.723 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.18e-05/0.00344, allocations: 27.92 kB / 372.8 MB, free: 1.695 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001508/0.003591, allocations: 123.5 kB / 372.9 MB, free: 1.574 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.003594, allocations: 0 / 372.9 MB, free: 1.574 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.003595, allocations: 0 / 372.9 MB, free: 1.574 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.003599, allocations: 0 / 372.9 MB, free: 1.574 MB / 298.7 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.0004701/0.004069, allocations: 341.9 kB / 373.2 MB, free: 1.207 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.00411, allocations: 8.031 kB / 373.3 MB, free: 1.199 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.589e-05/0.004146, allocations: 46.73 kB / 373.3 MB, free: 1.145 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.004181, allocations: 16.84 kB / 373.3 MB, free: 1.129 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.004433, allocations: 162 kB / 373.5 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.004445, allocations: 4.375 kB / 373.5 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.00447, allocations: 16.36 kB / 373.5 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.004672, allocations: 124.7 kB / 373.6 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.004679, allocations: 192 / 373.6 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.00469, allocations: 3.938 kB / 373.6 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.004696, allocations: 4 kB / 373.6 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.004805, allocations: 59.95 kB / 373.7 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004534/0.005259, allocations: 392.7 kB / 374.1 MB, free: 292 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002641/0.005523, allocations: 119.7 kB / 374.2 MB, free: 144 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.143e-05/0.005584, allocations: 50.62 kB / 374.2 MB, free: 84 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.005605, allocations: 7.984 kB / 374.2 MB, free: 76 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.82e-05/0.005623, allocations: 30.56 kB / 374.3 MB, free: 36 kB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.143e-06/0.005625, allocations: 0 / 374.3 MB, free: 36 kB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002592/0.005884, allocations: 121.5 kB / 374.4 MB, free: 15.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.005925, allocations: 110.7 kB / 374.5 MB, free: 15.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.006028, allocations: 161.9 kB / 374.7 MB, free: 15.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.301e-05/0.006041, allocations: 25.7 kB / 374.7 MB, free: 15.58 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.576e-05/0.006107, allocations: 120 kB / 374.8 MB, free: 15.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.006128, allocations: 27.8 kB / 374.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.718e-05/0.006165, allocations: 21.72 kB / 374.8 MB, free: 15.4 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.053e-05/0.006245, allocations: 322.8 kB / 375.2 MB, free: 15.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.762e-05/0.006303, allocations: 28.23 kB / 375.2 MB, free: 15.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.299e-05/0.006386, allocations: 116.5 kB / 375.3 MB, free: 14.91 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/0.006496, allocations: 79.61 kB / 375.4 MB, free: 14.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.006498, allocations: 0 / 375.4 MB, free: 14.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002283/0.006727, allocations: 142.3 kB / 375.5 MB, free: 14.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.006742, allocations: 8 kB / 375.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.006749, allocations: 0 / 375.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001619/0.006911, allocations: 32.83 kB / 375.6 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.332e-05/0.006974, allocations: 15.98 kB / 375.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007993/0.007773, allocations: 1.354 MB / 376.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.403e-05/0.007827, allocations: 7.953 kB / 376.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.007838, allocations: 7.984 kB / 376.9 MB, free: 13.13 MB / 314.7 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 7.274e-05/0.007911, allocations: 123.8 kB / 377.1 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.938e-05/0.00793, allocations: 7.953 kB / 377.1 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.883e-05/0.007949, allocations: 16.47 kB / 377.1 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.00795, allocations: 0 / 377.1 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.007953, allocations: 12 kB / 377.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.007956, allocations: 3.984 kB / 377.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.008098, allocations: 164.7 kB / 377.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.008101, allocations: 3.984 kB / 377.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.603e-05/0.008167, allocations: 15.98 kB / 377.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.008169, allocations: 4 kB / 377.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.008178, allocations: 4 kB / 377.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.00818, allocations: 64 / 377.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.008184, allocations: 12.12 kB / 377.3 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002066/0.00839, allocations: 233.1 kB / 377.5 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.422e-05/0.008404, allocations: 15.86 kB / 377.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-06/0.008414, allocations: 0 / 377.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.118e-05/0.008465, allocations: 7.984 kB / 377.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.008506, allocations: 11.94 kB / 377.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.832e-06/0.008513, allocations: 7.984 kB / 377.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.523e-05/0.008568, allocations: 111.3 kB / 377.7 MB, free: 12.31 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008568, allocations: 0 / 377.7 MB, free: 12.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001724/0.00874, allocations: 20 kB / 377.7 MB, free: 12.29 MB / 314.7 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.0003867/0.009127, allocations: 0.7727 MB / 378.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003324/0.009459, allocations: 198.5 kB / 378.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.009461, allocations: 0 / 378.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.362e-05/0.009515, allocations: 36.3 kB / 378.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.00976, allocations: 30.67 kB / 378.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.01115, allocations: 1.707 MB / 380.4 MB, free: 9.387 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.281e-05/0.01122, allocations: 93.3 kB / 380.5 MB, free: 9.273 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.489e-05/0.01127, allocations: 12.53 kB / 380.5 MB, free: 9.262 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.912e-05/0.01133, allocations: 36.48 kB / 380.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01133, allocations: 0 / 380.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01586/0.02719, allocations: 3.535 MB / 384.1 MB, free: 5.73 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.705/6.732, allocations: 16 kB / 384.1 MB, free: 5.715 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/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: 8.527750680223107]