Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_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_symb_jac_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.001432/0.001432, allocations: 107.1 kB / 16.64 MB, free: 6.379 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.001729/0.001729, allocations: 189.5 kB / 17.57 MB, free: 5.797 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.531/1.531, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06092/0.06092, allocations: 14.15 MB / 284.9 MB, free: 14.11 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.002112/0.002113, allocations: 67.89 kB / 348 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2534, allocations: 50.11 MB / 398.1 MB, free: 48.56 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002953/0.2564, allocations: 1.888 MB / 400 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003469/0.2568, allocations: 158.5 kB / 400.1 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.2569, allocations: 7.094 kB / 400.1 MB, free: 46.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.257, allocations: 18.14 kB / 400.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001501/0.2572, allocations: 18.14 kB / 400.1 MB, free: 46.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.89e-05/0.2573, allocations: 42.75 kB / 400.2 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.2575, allocations: 118.5 kB / 400.3 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.2576, allocations: 54.98 kB / 400.4 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.4e-05/0.2577, allocations: 52.94 kB / 400.4 MB, free: 46.74 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.079e-05/0.2578, allocations: 42.16 kB / 400.5 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.2578, allocations: 8.031 kB / 400.5 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.912e-05/0.2578, allocations: 8.688 kB / 400.5 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.502e-05/0.2579, allocations: 31.23 kB / 400.5 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.158e-05/0.2579, allocations: 46.61 kB / 400.5 MB, free: 46.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.258, allocations: 72.33 kB / 400.6 MB, free: 46.6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.258, allocations: 0 / 400.6 MB, free: 46.6 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.258, allocations: 1.094 kB / 400.6 MB, free: 46.6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2581, allocations: 0 / 400.6 MB, free: 46.6 MB / 318.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.0004752/0.2585, allocations: 428.7 kB / 401 MB, free: 46.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2586, allocations: 13 kB / 401 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.791e-05/0.2586, allocations: 21 kB / 401.1 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.2588, allocations: 210.7 kB / 401.3 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.2589, allocations: 9.406 kB / 401.3 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.377e-05/0.2589, allocations: 18.11 kB / 401.3 MB, free: 45.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.2592, allocations: 137.5 kB / 401.4 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.2592, allocations: 0 / 401.4 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.2592, allocations: 6.25 kB / 401.4 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.2592, allocations: 2.25 kB / 401.4 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.2594, allocations: 63.41 kB / 401.5 MB, free: 45.76 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005531/0.26, allocations: 0.6109 MB / 402.1 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002607/0.2602, allocations: 110.3 kB / 402.2 MB, free: 45.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.365e-05/0.2603, allocations: 43.69 kB / 402.3 MB, free: 45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.2604, allocations: 1.281 kB / 402.3 MB, free: 45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.637e-05/0.2604, allocations: 35.88 kB / 402.3 MB, free: 44.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.2604, allocations: 0 / 402.3 MB, free: 44.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003953/0.2608, allocations: 121.8 kB / 402.4 MB, free: 44.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.2608, allocations: 108.8 kB / 402.5 MB, free: 44.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.261, allocations: 154.9 kB / 402.7 MB, free: 44.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.261, allocations: 26.7 kB / 402.7 MB, free: 44.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.31e-05/0.261, allocations: 114.3 kB / 402.8 MB, free: 44.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/0.2611, allocations: 23.47 kB / 402.8 MB, free: 44.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-05/0.2611, allocations: 33.64 kB / 402.9 MB, free: 44.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.664e-05/0.2612, allocations: 320.5 kB / 403.2 MB, free: 44.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.2613, allocations: 20.98 kB / 403.2 MB, free: 44.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.2614, allocations: 63.75 kB / 403.3 MB, free: 44.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.2617, allocations: 106.1 kB / 403.4 MB, free: 43.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2617, allocations: 0 / 403.4 MB, free: 43.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000306/0.262, allocations: 130.9 kB / 403.5 MB, free: 43.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.262, allocations: 6.625 kB / 403.5 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.262, allocations: 1.25 kB / 403.5 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.2621, allocations: 1.312 kB / 403.5 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.2623, allocations: 27.31 kB / 403.5 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.2623, allocations: 2.625 kB / 403.5 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.2624, allocations: 9.562 kB / 403.5 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.2624, allocations: 12.19 kB / 403.6 MB, free: 43.84 MB / 318.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.741e-05/0.2625, allocations: 132.2 kB / 403.7 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.2626, allocations: 7.938 kB / 403.7 MB, free: 43.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.75e-05/0.2626, allocations: 20.39 kB / 403.7 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2626, allocations: 1.281 kB / 403.7 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2626, allocations: 1.406 kB / 403.7 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2626, allocations: 0 / 403.7 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002163/0.2629, allocations: 213.4 kB / 403.9 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2629, allocations: 0 / 403.9 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.263, allocations: 24.2 kB / 404 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.2631, allocations: 2.281 kB / 404 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.2631, allocations: 1.094 kB / 404 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.2631, allocations: 9.422 kB / 404 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2631, allocations: 0 / 404 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.2646, allocations: 1.365 MB / 405.3 MB, free: 42.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.203e-05/0.2646, allocations: 89.09 kB / 405.4 MB, free: 41.97 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.2647, allocations: 5.312 kB / 405.4 MB, free: 41.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/0.2648, allocations: 10.7 kB / 405.4 MB, free: 41.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.2649, allocations: 4.094 kB / 405.4 MB, free: 41.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.717e-06/0.2649, allocations: 1.125 kB / 405.4 MB, free: 41.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.259e-05/0.265, allocations: 114.8 kB / 405.5 MB, free: 41.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.265, allocations: 0 / 405.5 MB, free: 41.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005284/0.2655, allocations: 26.53 kB / 405.6 MB, free: 41.86 MB / 318.1 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 9.155e-05/0.2656, allocations: 96.31 kB / 405.7 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003181/0.266, allocations: 79.02 kB / 405.7 MB, free: 41.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.266, allocations: 0 / 405.7 MB, free: 41.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.2661, allocations: 27.27 kB / 405.8 MB, free: 41.72 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005371/0.2667, allocations: 36.7 kB / 405.8 MB, free: 41.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007001/0.2674, allocations: 431.5 kB / 406.2 MB, free: 41.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001519/0.2675, allocations: 0.7098 MB / 406.9 MB, free: 40.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.172e-05/0.2676, allocations: 18.69 kB / 407 MB, free: 40.57 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2676, allocations: 0 / 407 MB, free: 40.57 MB / 318.1 MB Notification: Performance of Templates: time 0.003867/0.2715, allocations: 1.413 MB / 408.4 MB, free: 39.84 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches