Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.001437/0.001437, allocations: 112.6 kB / 16.37 MB, free: 6 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.001325/0.001325, allocations: 196 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07427/0.07427, allocations: 16.74 MB / 307.9 MB, free: 14.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 62.83 kB / 375.2 MB, free: 48.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1043, allocations: 53.57 MB / 428.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003012/0.1074, allocations: 1.799 MB / 430.6 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004148/0.1078, allocations: 155.5 kB / 430.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.108, allocations: 0 / 430.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.1082, allocations: 19.8 kB / 430.8 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.1084, allocations: 27.78 kB / 430.8 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001006/0.1085, allocations: 43.89 kB / 430.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001952/0.1087, allocations: 127.7 kB / 431 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.1089, allocations: 53.27 kB / 431 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.082e-05/0.1089, allocations: 55.72 kB / 431.1 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.69e-05/0.109, allocations: 43.77 kB / 431.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/0.1091, allocations: 12 kB / 431.1 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.586e-05/0.1091, allocations: 8 kB / 431.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.724e-05/0.1091, allocations: 27.92 kB / 431.2 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.239e-05/0.1092, allocations: 59.66 kB / 431.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.1093, allocations: 107.5 kB / 431.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1093, allocations: 0 / 431.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1093, allocations: 3.938 kB / 431.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1093, allocations: 0 / 431.3 MB, free: 7.336 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.0005402/0.1099, allocations: 427 kB / 431.8 MB, free: 6.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1099, allocations: 12.03 kB / 431.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.11, allocations: 20.69 kB / 431.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.1102, allocations: 212.6 kB / 432 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.1103, allocations: 8.375 kB / 432 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.11e-05/0.1103, allocations: 12.38 kB / 432 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002145/0.1105, allocations: 122.7 kB / 432.1 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.1105, allocations: 4 kB / 432.1 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.1105, allocations: 4 kB / 432.1 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1106, allocations: 4 kB / 432.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001644/0.1107, allocations: 59.91 kB / 432.2 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005563/0.1113, allocations: 449.2 kB / 432.6 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003636/0.1117, allocations: 119.8 kB / 432.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.177e-05/0.1118, allocations: 42.62 kB / 432.8 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.1118, allocations: 8 kB / 432.8 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.915e-05/0.1118, allocations: 34.56 kB / 432.8 MB, free: 5.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 2.104e-06/0.1118, allocations: 4 kB / 432.9 MB, free: 5.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003939/0.1122, allocations: 133.7 kB / 433 MB, free: 5.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.1123, allocations: 106.8 kB / 433.1 MB, free: 5.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.1124, allocations: 154.5 kB / 433.2 MB, free: 5.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.1124, allocations: 33.7 kB / 433.3 MB, free: 5.152 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.046e-05/0.1125, allocations: 115.9 kB / 433.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.1125, allocations: 19.66 kB / 433.4 MB, free: 5.016 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.033e-05/0.1125, allocations: 29.7 kB / 433.4 MB, free: 4.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.646e-05/0.1126, allocations: 318.8 kB / 433.7 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.847e-05/0.1127, allocations: 23.98 kB / 433.8 MB, free: 4.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.832e-05/0.1128, allocations: 61.14 kB / 433.8 MB, free: 4.559 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.1129, allocations: 83.38 kB / 433.9 MB, free: 4.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1129, allocations: 0 / 433.9 MB, free: 4.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003169/0.1133, allocations: 142.1 kB / 434 MB, free: 4.316 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1133, allocations: 4 kB / 434 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.1133, allocations: 0 / 434 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002327/0.1135, allocations: 44.92 kB / 434.1 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.78e-05/0.1136, allocations: 15.92 kB / 434.1 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000836/0.1145, allocations: 1.454 MB / 435.6 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.276e-05/0.1146, allocations: 7.969 kB / 435.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.1146, allocations: 12.23 kB / 435.6 MB, free: 2.633 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 7.2e-05/0.1147, allocations: 126.7 kB / 435.7 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.134e-05/0.1147, allocations: 11.97 kB / 435.7 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.438e-05/0.1148, allocations: 16.25 kB / 435.7 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1148, allocations: 0 / 435.7 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.1148, allocations: 4 kB / 435.7 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1148, allocations: 3.984 kB / 435.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.1149, allocations: 209.5 kB / 435.9 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.115, allocations: 4 kB / 435.9 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.1151, allocations: 16.12 kB / 436 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.1151, allocations: 0 / 436 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.1151, allocations: 11.91 kB / 436 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.1151, allocations: 8 kB / 436 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1151, allocations: 0 / 436 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.1154, allocations: 225.1 kB / 436.2 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.69e-05/0.1154, allocations: 93.03 kB / 436.3 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.1155, allocations: 8 kB / 436.3 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.1156, allocations: 7.938 kB / 436.3 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.394e-05/0.1156, allocations: 7.984 kB / 436.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.1156, allocations: 8 kB / 436.3 MB, free: 1.789 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.889e-05/0.1157, allocations: 115.2 kB / 436.4 MB, free: 1.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1157, allocations: 0 / 436.4 MB, free: 1.676 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002482/0.116, allocations: 19.94 kB / 436.5 MB, free: 1.656 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 9.096e-05/0.116, allocations: 103.2 kB / 436.6 MB, free: 1.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004198/0.1165, allocations: 194.5 kB / 436.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1165, allocations: 0 / 436.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.191e-05/0.1166, allocations: 35.97 kB / 436.8 MB, free: 1.309 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.1169, allocations: 30.58 kB / 436.8 MB, free: 1.281 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004795/0.1174, allocations: 241.6 kB / 437.1 MB, free: 1.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.1175, allocations: 0.7117 MB / 437.8 MB, free: 280 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.856e-05/0.1176, allocations: 8.562 kB / 437.8 MB, free: 272 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.256e-05/0.1177, allocations: 11.44 kB / 437.8 MB, free: 260 kB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1177, allocations: 0 / 437.8 MB, free: 260 kB / 302.1 MB Notification: Performance of Templates: time 0.003945/0.1216, allocations: 1.265 MB / 439 MB, free: 15 MB / 318.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches