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.0009558/0.0009559, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0009497/0.0009498, allocations: 193.3 kB / 16.14 MB, free: 6.703 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.13/1.13, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05452/0.05452, allocations: 14.16 MB / 283.5 MB, free: 7.309 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.001234/0.001234, allocations: 63.91 kB / 346.5 MB, free: 17.7 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0629/0.06415, allocations: 50.14 MB / 396.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002342/0.06652, allocations: 1.863 MB / 398.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002733/0.0668, allocations: 147.5 kB / 398.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.511e-05/0.06689, allocations: 4 kB / 398.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.067, allocations: 11.86 kB / 398.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.06712, allocations: 31.86 kB / 398.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.895e-05/0.0672, allocations: 27.97 kB / 398.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.06733, allocations: 123.6 kB / 398.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.06746, allocations: 49.31 kB / 398.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.251e-05/0.06751, allocations: 47.73 kB / 399 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.597e-05/0.0676, allocations: 51.7 kB / 399 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.06762, allocations: 4 kB / 399 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.694e-05/0.06765, allocations: 8 kB / 399 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.585e-05/0.06768, allocations: 19.86 kB / 399.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.662e-05/0.06773, allocations: 47.72 kB / 399.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.06784, allocations: 99.61 kB / 399.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.06785, allocations: 0 / 399.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.06785, allocations: 0 / 399.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.06786, allocations: 0 / 399.2 MB, free: 12.99 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.000495/0.06836, allocations: 431 kB / 399.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.0684, allocations: 12.02 kB / 399.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.308e-05/0.06844, allocations: 38.75 kB / 399.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.296e-05/0.06848, allocations: 16.75 kB / 399.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.06867, allocations: 220.5 kB / 399.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.06869, allocations: 8.375 kB / 399.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.06871, allocations: 8.375 kB / 399.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002083/0.06893, allocations: 116.2 kB / 400 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.06894, allocations: 4 kB / 400 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.06896, allocations: 8 kB / 400 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.06897, allocations: 0 / 400 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.06915, allocations: 63.89 kB / 400.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005276/0.06968, allocations: 457.2 kB / 400.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000331/0.07002, allocations: 115.8 kB / 400.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.589e-05/0.07013, allocations: 46.69 kB / 400.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.07015, allocations: 3.984 kB / 400.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.07018, allocations: 38.5 kB / 400.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.07018, allocations: 0 / 400.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003344/0.07052, allocations: 121.6 kB / 400.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.07057, allocations: 106.8 kB / 401 MB, free: 10.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.07069, allocations: 150.4 kB / 401.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.07071, allocations: 25.7 kB / 401.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.836e-05/0.07078, allocations: 115.9 kB / 401.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.07081, allocations: 31.8 kB / 401.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-05/0.07085, allocations: 29.72 kB / 401.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.163e-05/0.07094, allocations: 318.8 kB / 401.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.349e-05/0.07103, allocations: 23.92 kB / 401.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.07114, allocations: 69.06 kB / 401.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.07131, allocations: 79.64 kB / 401.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.07132, allocations: 0 / 401.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003445/0.07167, allocations: 150.2 kB / 401.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.07169, allocations: 4 kB / 401.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.0717, allocations: 0 / 401.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/0.07188, allocations: 36.83 kB / 402 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.67e-05/0.07198, allocations: 15.98 kB / 402 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009709/0.07296, allocations: 1.359 MB / 403.4 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.319e-05/0.07307, allocations: 12.03 kB / 403.4 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.07308, allocations: 0 / 403.4 MB, free: 8.348 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 8.4e-05/0.07317, allocations: 133.9 kB / 403.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.07321, allocations: 7.906 kB / 403.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.547e-05/0.07324, allocations: 12.31 kB / 403.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.07325, allocations: 0 / 403.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.07325, allocations: 3.938 kB / 403.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.07326, allocations: 4 kB / 403.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.07345, allocations: 213.5 kB / 403.7 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.07346, allocations: 0 / 403.7 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.07358, allocations: 19.92 kB / 403.8 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.0736, allocations: 4 kB / 403.8 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.07361, allocations: 8 kB / 403.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.07362, allocations: 3.984 kB / 403.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.07363, allocations: 7.922 kB / 403.8 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003174/0.07395, allocations: 225.2 kB / 404 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.284e-05/0.074, allocations: 92.97 kB / 404.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/0.07403, allocations: 8 kB / 404.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.07413, allocations: 0 / 404.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.789e-05/0.07418, allocations: 15.86 kB / 404.1 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-06/0.07419, allocations: 4 kB / 404.1 MB, free: 7.496 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.259e-05/0.07427, allocations: 119.9 kB / 404.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07427, allocations: 0 / 404.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002372/0.07451, allocations: 23.91 kB / 404.3 MB, free: 7.355 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.0005184/0.07504, allocations: 0.7726 MB / 405 MB, free: 6.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003811/0.07543, allocations: 186.7 kB / 405.2 MB, free: 6.352 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.07544, allocations: 3.938 kB / 405.2 MB, free: 6.348 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.597e-05/0.07554, allocations: 31.98 kB / 405.2 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.07586, allocations: 27.97 kB / 405.3 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.07764, allocations: 1.754 MB / 407 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/0.07785, allocations: 0.7043 MB / 407.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.058e-05/0.07791, allocations: 8.562 kB / 407.7 MB, free: 3.684 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.017e-05/0.07798, allocations: 31.42 kB / 407.8 MB, free: 3.652 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.07799, allocations: 0 / 407.8 MB, free: 3.652 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01098/0.08897, allocations: 2.545 MB / 410.3 MB, free: 1.148 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.08917, allocations: 201.9 kB / 410.5 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.525/1.614, allocations: 0 / 410.5 MB, free: 0.8906 MB / 302.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