Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.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.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="derivativeLag.T1|derivativeLag.Td|derivativeLag.feedback.y|derivativeLag.gain.k|derivativeLag.gain.u|derivativeLag.gain.y|derivativeLag.initType|derivativeLag.integrator.initType|derivativeLag.integrator.k|derivativeLag.integrator.u|derivativeLag.integrator.y|derivativeLag.integrator.y_start|derivativeLag.noDynamics|derivativeLag.u|derivativeLag.y|derivativeLag.yStart|derivativeLagAnalyticSolution.y|derivativeLagNoDynamics.T1|derivativeLagNoDynamics.Td|derivativeLagNoDynamics.feedback.y|derivativeLagNoDynamics.gain.k|derivativeLagNoDynamics.gain.u|derivativeLagNoDynamics.gain.y|derivativeLagNoDynamics.initType|derivativeLagNoDynamics.noDynamics|derivativeLagNoDynamics.u|derivativeLagNoDynamics.y|derivativeLagNoDynamics.yStart|derivativeLagNoDynamics.zero.y|derivativeLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag") translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="derivativeLag.T1|derivativeLag.Td|derivativeLag.feedback.y|derivativeLag.gain.k|derivativeLag.gain.u|derivativeLag.gain.y|derivativeLag.initType|derivativeLag.integrator.initType|derivativeLag.integrator.k|derivativeLag.integrator.u|derivativeLag.integrator.y|derivativeLag.integrator.y_start|derivativeLag.noDynamics|derivativeLag.u|derivativeLag.y|derivativeLag.yStart|derivativeLagAnalyticSolution.y|derivativeLagNoDynamics.T1|derivativeLagNoDynamics.Td|derivativeLagNoDynamics.feedback.y|derivativeLagNoDynamics.gain.k|derivativeLagNoDynamics.gain.u|derivativeLagNoDynamics.gain.y|derivativeLagNoDynamics.initType|derivativeLagNoDynamics.noDynamics|derivativeLagNoDynamics.u|derivativeLagNoDynamics.y|derivativeLagNoDynamics.yStart|derivativeLagNoDynamics.zero.y|derivativeLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 113.9 kB / 16.42 MB, free: 6.449 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.001231/0.001231, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.311/1.311, allocations: 222.9 MB / 241.1 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.07824/0.07824, allocations: 16.78 MB / 308 MB, free: 14.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 59.91 kB / 429.3 MB, free: 8.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1022, allocations: 53.57 MB / 482.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002875/0.1051, allocations: 1.83 MB / 484.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004052/0.1055, allocations: 167.4 kB / 484.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.1057, allocations: 4 kB / 484.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001358/0.1058, allocations: 27.73 kB / 484.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.106, allocations: 23.8 kB / 485 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001058/0.1061, allocations: 43.95 kB / 485 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.1063, allocations: 123.6 kB / 485.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.1064, allocations: 49.33 kB / 485.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.294e-05/0.1065, allocations: 47.78 kB / 485.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.1066, allocations: 39.78 kB / 485.3 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.374e-05/0.1066, allocations: 8 kB / 485.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.88e-05/0.1067, allocations: 8 kB / 485.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.834e-05/0.1067, allocations: 31.86 kB / 485.3 MB, free: 480 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.971e-05/0.1068, allocations: 51.67 kB / 485.4 MB, free: 428 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.1069, allocations: 107.6 kB / 485.5 MB, free: 320 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1069, allocations: 4 kB / 485.5 MB, free: 316 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1069, allocations: 0 / 485.5 MB, free: 316 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1069, allocations: 0 / 485.5 MB, free: 316 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.000513/0.1075, allocations: 419.2 kB / 485.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.1075, allocations: 11.97 kB / 485.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.076e-05/0.1076, allocations: 16.84 kB / 485.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002606/0.1078, allocations: 227.9 kB / 486.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.1078, allocations: 8.547 kB / 486.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.935e-05/0.1079, allocations: 12.38 kB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002503/0.1081, allocations: 136.5 kB / 486.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.1082, allocations: 0 / 486.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.1082, allocations: 4 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.1082, allocations: 4 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.1084, allocations: 71.75 kB / 486.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006458/0.109, allocations: 0.5952 MB / 487 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.1093, allocations: 115.9 kB / 487.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.1094, allocations: 42.69 kB / 487.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.1095, allocations: 4 kB / 487.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/0.1095, allocations: 34.5 kB / 487.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.1095, allocations: 0 / 487.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003722/0.1099, allocations: 121.6 kB / 487.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.1099, allocations: 102.8 kB / 487.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.11, allocations: 152.3 kB / 487.5 MB, free: 14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.1101, allocations: 25.7 kB / 487.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.861e-05/0.1101, allocations: 131.6 kB / 487.7 MB, free: 13.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.1102, allocations: 19.72 kB / 487.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.1102, allocations: 33.95 kB / 487.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.847e-05/0.1103, allocations: 318.8 kB / 488 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.394e-05/0.1104, allocations: 19.98 kB / 488.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.1105, allocations: 73.92 kB / 488.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000185/0.1107, allocations: 93.11 kB / 488.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1107, allocations: 3.938 kB / 488.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002532/0.111, allocations: 129.3 kB / 488.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.111, allocations: 6.656 kB / 488.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.111, allocations: 0 / 488.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.111, allocations: 4 kB / 488.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.1112, allocations: 27.97 kB / 488.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.1112, allocations: 3.938 kB / 488.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.179e-05/0.1113, allocations: 11.94 kB / 488.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.1113, allocations: 8.156 kB / 488.4 MB, free: 13.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (derivativeLag.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 8.813e-05/0.1114, allocations: 125.8 kB / 488.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.1114, allocations: 11.89 kB / 488.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.306e-05/0.1115, allocations: 12.31 kB / 488.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1115, allocations: 0 / 488.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1115, allocations: 4 kB / 488.6 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.99e-05/0.1116, allocations: 81.02 kB / 488.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.1116, allocations: 12.3 kB / 488.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.1117, allocations: 12 kB / 488.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.39e-05/0.1118, allocations: 11.92 kB / 488.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003662/0.1121, allocations: 339.2 kB / 489 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00041/0.1126, allocations: 445.3 kB / 489.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.527e-05/0.1127, allocations: 31.95 kB / 489.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.143e-05/0.1127, allocations: 118 kB / 489.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of Backend: time 3.71e-07/0.1127, allocations: 0 / 489.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000564/0.1133, allocations: 122.4 kB / 489.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of SimCode: time 0.000715/0.114, allocations: 0.6796 MB / 490.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of Templates: time 0.003496/0.1176, allocations: 1.157 MB / 491.5 MB, free: 9.793 MB / 366.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches