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.007268/0.007268, allocations: 98.52 kB / 15.73 MB, free: 5.527 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.001774/0.001774, allocations: 187.4 kB / 16.67 MB, free: 5.465 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.466/1.466, allocations: 205.1 MB / 222.6 MB, free: 4.371 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06558/0.06558, allocations: 14.17 MB / 284.1 MB, free: 6.852 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.00211/0.00211, allocations: 67.89 kB / 398.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3299, allocations: 50.14 MB / 448.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.00302/0.3329, allocations: 1.797 MB / 450 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003986/0.3333, allocations: 151.7 kB / 450.2 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.3335, allocations: 7.438 kB / 450.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.3337, allocations: 17.05 kB / 450.2 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.3338, allocations: 26.25 kB / 450.2 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001098/0.334, allocations: 45.45 kB / 450.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002297/0.3342, allocations: 136.8 kB / 450.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002133/0.3344, allocations: 61.95 kB / 450.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.816e-05/0.3345, allocations: 49.09 kB / 450.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.3346, allocations: 50.89 kB / 450.6 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.122e-05/0.3347, allocations: 9.781 kB / 450.6 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.647e-05/0.3347, allocations: 9.688 kB / 450.6 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.21e-05/0.3347, allocations: 27.86 kB / 450.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.35e-05/0.3348, allocations: 45.33 kB / 450.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001614/0.3349, allocations: 121.3 kB / 450.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.335, allocations: 0 / 450.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.335, allocations: 3.938 kB / 450.8 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.335, allocations: 0 / 450.8 MB, free: 0.6523 MB / 318.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.0005855/0.3356, allocations: 421 kB / 451.2 MB, free: 240 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.3356, allocations: 13.41 kB / 451.2 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.3e-05/0.3357, allocations: 44.98 kB / 451.2 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.044e-05/0.3357, allocations: 16.78 kB / 451.3 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.336, allocations: 213.4 kB / 451.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.3361, allocations: 8.375 kB / 451.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.3361, allocations: 11.28 kB / 451.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002714/0.3364, allocations: 122.4 kB / 451.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3364, allocations: 5.375 kB / 451.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.3364, allocations: 4 kB / 451.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.3364, allocations: 2.75 kB / 451.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/0.3366, allocations: 56.97 kB / 451.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006975/0.3373, allocations: 449.8 kB / 452.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003822/0.3377, allocations: 122.2 kB / 452.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.3379, allocations: 47.06 kB / 452.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.3379, allocations: 1.375 kB / 452.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3379, allocations: 39.92 kB / 452.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.3379, allocations: 1.375 kB / 452.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004114/0.3383, allocations: 123.2 kB / 452.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.3384, allocations: 108.2 kB / 452.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.3386, allocations: 150 kB / 452.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.3386, allocations: 31.08 kB / 452.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.3387, allocations: 113.5 kB / 452.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.3388, allocations: 27.86 kB / 452.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-05/0.3388, allocations: 24.59 kB / 452.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.339, allocations: 320.2 kB / 453.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.237e-05/0.3391, allocations: 25.48 kB / 453.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.3392, allocations: 61.92 kB / 453.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.3394, allocations: 85.38 kB / 453.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3394, allocations: 1.031 kB / 453.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004039/0.3398, allocations: 135.4 kB / 453.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.3399, allocations: 5.75 kB / 453.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.3399, allocations: 1.562 kB / 453.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002217/0.3401, allocations: 44.39 kB / 453.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.3402, allocations: 19.58 kB / 453.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.3416, allocations: 1.461 MB / 455 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.448e-05/0.3417, allocations: 8.672 kB / 455 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.3417, allocations: 7.734 kB / 455 MB, free: 12.55 MB / 334.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.0001121/0.3418, allocations: 131.6 kB / 455.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.528e-05/0.3419, allocations: 8.203 kB / 455.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.662e-05/0.3419, allocations: 15.16 kB / 455.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3419, allocations: 1.469 kB / 455.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.3419, allocations: 1.438 kB / 455.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3419, allocations: 5.328 kB / 455.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002449/0.3422, allocations: 209 kB / 455.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3422, allocations: 0 / 455.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.3423, allocations: 16.55 kB / 455.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3423, allocations: 2.094 kB / 455.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.3423, allocations: 12.8 kB / 455.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3423, allocations: 1.062 kB / 455.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3423, allocations: 1.125 kB / 455.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003764/0.3427, allocations: 229.8 kB / 455.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.093e-05/0.3428, allocations: 93.31 kB / 455.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.3428, allocations: 5.125 kB / 455.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.3429, allocations: 3.25 kB / 455.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.295e-05/0.343, allocations: 8.078 kB / 455.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/0.343, allocations: 5.375 kB / 455.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001153/0.3431, allocations: 125.2 kB / 455.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3431, allocations: 0 / 455.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002628/0.3434, allocations: 23.33 kB / 455.9 MB, free: 11.73 MB / 334.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.0007797/0.3442, allocations: 0.7681 MB / 456.7 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005207/0.3447, allocations: 200.8 kB / 456.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3447, allocations: 0 / 456.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.3448, allocations: 35 kB / 456.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.3452, allocations: 34.7 kB / 457 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.3477, allocations: 1.73 MB / 458.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.3481, allocations: 0.7023 MB / 459.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.402e-05/0.3481, allocations: 9 kB / 459.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.343e-05/0.3482, allocations: 33.36 kB / 459.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3482, allocations: 3.938 kB / 459.4 MB, free: 8.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02898/0.3772, allocations: 2.801 MB / 462.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.4, allocations: 1.031 kB / 462.2 MB, free: 6.953 MB / 334.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches