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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008028/0.0008028, allocations: 80.48 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008086/0.0008086, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.7495/0.7495, allocations: 158.6 MB / 185 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0367/0.0367, allocations: 10.65 MB / 247.9 MB, free: 4.727 MB / 234.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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=500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 371.7 MB, free: 3.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.512e-05/1.677e-05, allocations: 2.281 kB / 371.7 MB, free: 3.531 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.00181/0.001827, allocations: 1.775 MB / 373.5 MB, free: 1.742 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002898/0.002117, allocations: 171.4 kB / 373.7 MB, free: 1.574 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.166e-05/0.002199, allocations: 7.938 kB / 373.7 MB, free: 1.566 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.002311, allocations: 15.8 kB / 373.7 MB, free: 1.551 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.002439, allocations: 31.73 kB / 373.7 MB, free: 1.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.461e-05/0.002513, allocations: 39.94 kB / 373.7 MB, free: 1.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.002638, allocations: 127.6 kB / 373.9 MB, free: 1.355 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.002747, allocations: 37.5 kB / 373.9 MB, free: 1.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.758e-05/0.002814, allocations: 71.81 kB / 374 MB, free: 1.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.274e-05/0.002887, allocations: 35.89 kB / 374 MB, free: 1.215 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.002911, allocations: 8 kB / 374 MB, free: 1.207 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.122e-05/0.002922, allocations: 12 kB / 374 MB, free: 1.195 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.94e-05/0.002942, allocations: 15.92 kB / 374 MB, free: 1.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.677e-05/0.002968, allocations: 31.86 kB / 374.1 MB, free: 1.148 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.00309, allocations: 111.5 kB / 374.2 MB, free: 1.039 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.884e-06/0.003091, allocations: 0 / 374.2 MB, free: 1.039 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.003092, allocations: 0 / 374.2 MB, free: 1.039 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.003095, allocations: 0 / 374.2 MB, free: 1.039 MB / 298.7 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.0003771/0.003472, allocations: 353.9 kB / 374.5 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.825e-05/0.003501, allocations: 12.03 kB / 374.5 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.421e-05/0.003535, allocations: 12.84 kB / 374.6 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001751/0.00371, allocations: 153.6 kB / 374.7 MB, free: 472 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.003724, allocations: 8.562 kB / 374.7 MB, free: 464 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.003747, allocations: 16.36 kB / 374.7 MB, free: 448 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003888/0.004135, allocations: 131 kB / 374.9 MB, free: 296 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.004145, allocations: 3.984 kB / 374.9 MB, free: 292 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.004156, allocations: 8 kB / 374.9 MB, free: 284 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.004161, allocations: 4 kB / 374.9 MB, free: 280 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001042/0.004265, allocations: 63.91 kB / 374.9 MB, free: 216 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004182/0.004683, allocations: 0.517 MB / 375.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.004895, allocations: 107.8 kB / 375.6 MB, free: 15.51 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.917e-05/0.004954, allocations: 50.78 kB / 375.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.004967, allocations: 4 kB / 375.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/0.004983, allocations: 42.44 kB / 375.7 MB, free: 15.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 1.001e-06/0.004984, allocations: 0 / 375.7 MB, free: 15.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002202/0.005204, allocations: 117.5 kB / 375.8 MB, free: 15.28 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.509e-05/0.005239, allocations: 106.8 kB / 375.9 MB, free: 15.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.208e-05/0.005321, allocations: 150.4 kB / 376 MB, free: 14.99 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.005332, allocations: 29.7 kB / 376.1 MB, free: 14.96 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.978e-05/0.005382, allocations: 116.2 kB / 376.2 MB, free: 14.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.005399, allocations: 35.73 kB / 376.2 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.128e-05/0.00543, allocations: 25.72 kB / 376.2 MB, free: 14.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.635e-05/0.005496, allocations: 322.8 kB / 376.5 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.242e-05/0.005539, allocations: 23.92 kB / 376.6 MB, free: 14.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.573e-05/0.005604, allocations: 95.94 kB / 376.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00011/0.005714, allocations: 105 kB / 376.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.005716, allocations: 0 / 376.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001286/0.005845, allocations: 117.5 kB / 376.9 MB, free: 14.06 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.005855, allocations: 7.938 kB / 376.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.00586, allocations: 0 / 376.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.00587, allocations: 4.156 kB / 376.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.903e-05/0.005939, allocations: 27.98 kB / 376.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.005943, allocations: 0 / 376.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.304e-05/0.005986, allocations: 23.88 kB / 376.9 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.005993, allocations: 4 kB / 376.9 MB, free: 14 MB / 314.7 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 5.854e-05/0.006052, allocations: 123.8 kB / 377.1 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.826e-05/0.00607, allocations: 15.89 kB / 377.1 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.82e-05/0.006088, allocations: 8.469 kB / 377.1 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.006091, allocations: 4 kB / 377.1 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.006094, allocations: 0 / 377.1 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.006097, allocations: 7.984 kB / 377.1 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001053/0.006203, allocations: 141.3 kB / 377.2 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.006204, allocations: 0 / 377.2 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.177e-05/0.006255, allocations: 19.98 kB / 377.3 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.006257, allocations: 0 / 377.3 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.006264, allocations: 3.938 kB / 377.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.006266, allocations: 4 kB / 377.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.006267, allocations: 0 / 377.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001953/0.006462, allocations: 237 kB / 377.5 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.148e-05/0.006474, allocations: 8.047 kB / 377.5 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.006487, allocations: 7.938 kB / 377.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.447e-05/0.006531, allocations: 11.98 kB / 377.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.332e-05/0.006564, allocations: 11.98 kB / 377.5 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.006568, allocations: 7.938 kB / 377.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.636e-05/0.006614, allocations: 107.3 kB / 377.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006614, allocations: 3.938 kB / 377.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001617/0.006776, allocations: 23.89 kB / 377.7 MB, free: 13.21 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (derivativeLag.integrator.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 5.895e-05/0.006835, allocations: 103.2 kB / 377.8 MB, free: 13.1 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001315/0.006966, allocations: 59.91 kB / 377.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.006969, allocations: 4 kB / 377.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 4.408e-05/0.007013, allocations: 31.92 kB / 377.9 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.007216, allocations: 34.84 kB / 377.9 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003286/0.007544, allocations: 265.7 kB / 378.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.256e-05/0.007597, allocations: 89.86 kB / 378.2 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.007631, allocations: 20.5 kB / 378.3 MB, free: 12.55 MB / 314.7 MB Notification: Performance of SimCode: time 3.61e-07/0.007632, allocations: 0 / 378.3 MB, free: 12.55 MB / 314.7 MB Notification: Performance of Templates: time 0.001768/0.0094, allocations: 1.459 MB / 379.7 MB, free: 11.09 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.876950377598405]