Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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 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.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_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_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.001536/0.001536, allocations: 114.1 kB / 16.42 MB, free: 6.504 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.001416/0.001416, allocations: 188.2 kB / 17.35 MB, free: 5.758 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.356/1.356, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06498/0.06498, allocations: 14.17 MB / 284.8 MB, free: 13.87 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.001476/0.001476, allocations: 74.72 kB / 399.3 MB, free: 42.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07124/0.07273, allocations: 50.13 MB / 449.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003035/0.07579, allocations: 1.825 MB / 451.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004335/0.07625, allocations: 167.5 kB / 451.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.0764, allocations: 7.938 kB / 451.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.07658, allocations: 15.8 kB / 451.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.07674, allocations: 31.78 kB / 451.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001091/0.07686, allocations: 39.89 kB / 451.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.07705, allocations: 131.6 kB / 451.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.07721, allocations: 57.3 kB / 451.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.979e-05/0.07729, allocations: 51.78 kB / 451.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.0774, allocations: 43.72 kB / 451.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.07743, allocations: 8 kB / 451.8 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.301e-05/0.07746, allocations: 12 kB / 451.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.703e-05/0.07749, allocations: 15.92 kB / 451.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.423e-05/0.07755, allocations: 55.67 kB / 451.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001644/0.07772, allocations: 111.4 kB / 452 MB, free: 9.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.07773, allocations: 0 / 452 MB, free: 9.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.07774, allocations: 0 / 452 MB, free: 9.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.07775, allocations: 4 kB / 452 MB, free: 9.008 MB / 334.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.000541/0.0783, allocations: 423.1 kB / 452.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.07834, allocations: 8.031 kB / 452.4 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.905e-05/0.0784, allocations: 16.84 kB / 452.4 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.07868, allocations: 216.1 kB / 452.6 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.07871, allocations: 8.562 kB / 452.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.741e-05/0.07874, allocations: 12.38 kB / 452.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000263/0.07901, allocations: 136.2 kB / 452.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.07903, allocations: 0 / 452.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.07905, allocations: 8 kB / 452.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.07906, allocations: 4 kB / 452.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.07927, allocations: 63.89 kB / 452.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006924/0.07997, allocations: 0.6069 MB / 453.4 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002725/0.08026, allocations: 111.8 kB / 453.6 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.08038, allocations: 50.69 kB / 453.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.08041, allocations: 0 / 453.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.08043, allocations: 38.5 kB / 453.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.08044, allocations: 4 kB / 453.6 MB, free: 7.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003843/0.08083, allocations: 113.8 kB / 453.8 MB, free: 6.984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.08089, allocations: 106.8 kB / 453.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.08103, allocations: 147 kB / 454 MB, free: 6.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.08105, allocations: 33.7 kB / 454 MB, free: 6.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.067e-05/0.08114, allocations: 119.9 kB / 454.2 MB, free: 6.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.08117, allocations: 23.75 kB / 454.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.142e-05/0.08123, allocations: 29.7 kB / 454.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.08135, allocations: 322.8 kB / 454.5 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.575e-05/0.08146, allocations: 27.98 kB / 454.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.08158, allocations: 62 kB / 454.6 MB, free: 6.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.08179, allocations: 93.34 kB / 454.7 MB, free: 5.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.0818, allocations: 7.938 kB / 454.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002678/0.08207, allocations: 121.6 kB / 454.8 MB, free: 5.809 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.0821, allocations: 8 kB / 454.8 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.08211, allocations: 4 kB / 454.8 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.08213, allocations: 3.984 kB / 454.8 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.0823, allocations: 27.92 kB / 454.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.08232, allocations: 7.984 kB / 454.9 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.558e-05/0.08241, allocations: 11.89 kB / 454.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.08243, allocations: 4 kB / 454.9 MB, free: 5.742 MB / 334.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 9.911e-05/0.08253, allocations: 133.7 kB / 455 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.653e-05/0.08258, allocations: 7.953 kB / 455 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.723e-05/0.08262, allocations: 24.23 kB / 455.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.08263, allocations: 0 / 455.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.08263, allocations: 0 / 455.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.254e-05/0.08268, allocations: 85.06 kB / 455.1 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.08271, allocations: 0 / 455.1 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.08283, allocations: 11.92 kB / 455.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.945e-05/0.08289, allocations: 15.92 kB / 455.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003798/0.08327, allocations: 331.4 kB / 455.5 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004533/0.08374, allocations: 449.3 kB / 455.9 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.244e-05/0.08384, allocations: 27.97 kB / 456 MB, free: 4.625 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.852e-05/0.08393, allocations: 123.9 kB / 456.1 MB, free: 4.504 MB / 334.1 MB Notification: Performance of Backend: time 7.22e-07/0.08394, allocations: 0 / 456.1 MB, free: 4.504 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005657/0.08451, allocations: 119.5 kB / 456.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of SimCode: time 0.0006574/0.08517, allocations: 0.6858 MB / 456.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of Templates: time 0.003841/0.08903, allocations: 1.165 MB / 458 MB, free: 2.484 MB / 334.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches