Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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: translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="leadLag.T1|leadLag.T2|leadLag.feedback.y|leadLag.firstOrder.T|leadLag.firstOrder.initType|leadLag.firstOrder.k|leadLag.firstOrder.u|leadLag.firstOrder.y|leadLag.firstOrder.y_start|leadLag.gain.k|leadLag.gain.u|leadLag.gain.y|leadLag.initType|leadLag.k|leadLag.noDynamics|leadLag.u|leadLag.y|leadLag.yStart|leadLagAnalyticSolution.y|leadLagNoDynamics.T1|leadLagNoDynamics.T2|leadLagNoDynamics.feedback.y|leadLagNoDynamics.gain.k|leadLagNoDynamics.gain.u|leadLagNoDynamics.gain.y|leadLagNoDynamics.initType|leadLagNoDynamics.k|leadLagNoDynamics.noDynamics|leadLagNoDynamics.u|leadLagNoDynamics.y|leadLagNoDynamics.yStart|leadLagNoDynamics.zero.y|leadLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag") translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="leadLag.T1|leadLag.T2|leadLag.feedback.y|leadLag.firstOrder.T|leadLag.firstOrder.initType|leadLag.firstOrder.k|leadLag.firstOrder.u|leadLag.firstOrder.y|leadLag.firstOrder.y_start|leadLag.gain.k|leadLag.gain.u|leadLag.gain.y|leadLag.initType|leadLag.k|leadLag.noDynamics|leadLag.u|leadLag.y|leadLag.yStart|leadLagAnalyticSolution.y|leadLagNoDynamics.T1|leadLagNoDynamics.T2|leadLagNoDynamics.feedback.y|leadLagNoDynamics.gain.k|leadLagNoDynamics.gain.u|leadLagNoDynamics.gain.y|leadLagNoDynamics.initType|leadLagNoDynamics.k|leadLagNoDynamics.noDynamics|leadLagNoDynamics.u|leadLagNoDynamics.y|leadLagNoDynamics.yStart|leadLagNoDynamics.zero.y|leadLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008396/0.0008398, allocations: 92.72 kB / 16.03 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.001368, allocations: 177.8 kB / 16.92 MB, free: 6.719 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.686/1.686, allocations: 205.4 MB / 223.1 MB, free: 5.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06306/0.06306, allocations: 14.16 MB / 285.6 MB, free: 7.277 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.0005288/0.0005289, allocations: 12 kB / 349.5 MB, free: 17.52 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1157, allocations: 51.11 MB / 400.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002566/0.1183, allocations: 1.513 MB / 402.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004627/0.1189, allocations: 147.5 kB / 402.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.119, allocations: 4 kB / 402.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.1192, allocations: 15.86 kB / 402.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.1195, allocations: 23.84 kB / 402.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001116/0.1196, allocations: 27.97 kB / 402.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002238/0.1198, allocations: 119.6 kB / 402.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002456/0.1201, allocations: 57.25 kB / 402.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.78e-05/0.1202, allocations: 39.73 kB / 402.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.1203, allocations: 39.77 kB / 402.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.289e-05/0.1203, allocations: 3.938 kB / 402.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.941e-05/0.1204, allocations: 4 kB / 402.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.889e-05/0.1204, allocations: 15.92 kB / 402.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.085e-05/0.1205, allocations: 69.38 kB / 402.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001858/0.1207, allocations: 95.66 kB / 402.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.1207, allocations: 0 / 402.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1207, allocations: 3.938 kB / 402.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1208, allocations: 4 kB / 402.8 MB, free: 12.18 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.000787/0.1215, allocations: 395.2 kB / 403.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.403e-05/0.1216, allocations: 12.03 kB / 403.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.814e-05/0.1217, allocations: 20.75 kB / 403.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/0.122, allocations: 224.5 kB / 403.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.1221, allocations: 4.375 kB / 403.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.064e-05/0.1221, allocations: 16.31 kB / 403.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.1224, allocations: 124.3 kB / 403.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1224, allocations: 0 / 403.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.1225, allocations: 4 kB / 403.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.1225, allocations: 0 / 403.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002222/0.1227, allocations: 79.88 kB / 403.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008654/0.1236, allocations: 445.2 kB / 404.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004597/0.1241, allocations: 123.8 kB / 404.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.1242, allocations: 50.69 kB / 404.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.1242, allocations: 0 / 404.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.1243, allocations: 38.5 kB / 404.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.1243, allocations: 0 / 404.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004792/0.1248, allocations: 133.6 kB / 404.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.1248, allocations: 102.8 kB / 404.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.125, allocations: 150.4 kB / 404.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.125, allocations: 25.7 kB / 404.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.241e-05/0.1251, allocations: 119.9 kB / 404.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.219e-05/0.1252, allocations: 31.8 kB / 404.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.748e-05/0.1252, allocations: 13.72 kB / 404.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1253, allocations: 326.8 kB / 405.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.759e-05/0.1254, allocations: 23.92 kB / 405.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.1256, allocations: 65.12 kB / 405.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.1258, allocations: 83.39 kB / 405.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1258, allocations: 192 / 405.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003746/0.1262, allocations: 142.3 kB / 405.5 MB, free: 9.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.1262, allocations: 15.92 kB / 405.5 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1262, allocations: 0 / 405.5 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002186/0.1264, allocations: 36.78 kB / 405.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.1265, allocations: 20.08 kB / 405.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.1277, allocations: 1.363 MB / 406.9 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.1279, allocations: 11.94 kB / 406.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.1279, allocations: 7.984 kB / 406.9 MB, free: 7.574 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 0.000149/0.128, allocations: 121.8 kB / 407 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.1281, allocations: 15.91 kB / 407 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.1281, allocations: 8.312 kB / 407.1 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1281, allocations: 7.938 kB / 407.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1281, allocations: 0 / 407.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.1282, allocations: 11.98 kB / 407.1 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002877/0.1285, allocations: 205.5 kB / 407.3 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1285, allocations: 0 / 407.3 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.1286, allocations: 23.92 kB / 407.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1286, allocations: 0 / 407.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.1286, allocations: 7.984 kB / 407.3 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.1286, allocations: 4 kB / 407.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1287, allocations: 0 / 407.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.1302, allocations: 1.248 MB / 408.6 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.726e-05/0.1303, allocations: 88.95 kB / 408.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.1303, allocations: 11.92 kB / 408.7 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1304, allocations: 8.094 kB / 408.7 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.867e-05/0.1305, allocations: 7.984 kB / 408.7 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-06/0.1305, allocations: 4 kB / 408.7 MB, free: 5.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001152/0.1306, allocations: 119.9 kB / 408.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1307, allocations: 0 / 408.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003545/0.131, allocations: 27.94 kB / 408.8 MB, free: 5.445 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.0001444/0.1312, allocations: 99.28 kB / 408.9 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005197/0.1317, allocations: 202.6 kB / 409.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1317, allocations: 0 / 409.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.1318, allocations: 39.92 kB / 409.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/0.1323, allocations: 28.23 kB / 409.2 MB, free: 5.059 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007138/0.133, allocations: 433.9 kB / 409.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.1333, allocations: 0.7082 MB / 410.3 MB, free: 3.859 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.402e-05/0.1334, allocations: 8.562 kB / 410.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.1335, allocations: 15.44 kB / 410.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1335, allocations: 0 / 410.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of Templates: time 0.004036/0.1375, allocations: 1.194 MB / 411.5 MB, free: 2.648 MB / 302.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches