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.001139/0.001139, allocations: 108.7 kB / 15.99 MB, free: 6.34 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.001111/0.001111, allocations: 193.5 kB / 16.91 MB, free: 6.188 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.386/1.386, allocations: 205.1 MB / 222.8 MB, free: 12.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05649/0.05649, allocations: 14.17 MB / 284.3 MB, free: 14.1 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.001565/0.001565, allocations: 71.91 kB / 347.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2433, allocations: 50.12 MB / 397.4 MB, free: 48.58 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002652/0.246, allocations: 1.877 MB / 399.3 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003202/0.2464, allocations: 166.7 kB / 399.5 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.2465, allocations: 3.969 kB / 399.5 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.2466, allocations: 17.14 kB / 399.5 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.2468, allocations: 26.48 kB / 399.5 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.255e-05/0.2469, allocations: 29.86 kB / 399.5 MB, free: 46.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000155/0.247, allocations: 128.4 kB / 399.7 MB, free: 46.83 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.2472, allocations: 50.09 kB / 399.7 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.181e-05/0.2472, allocations: 53.41 kB / 399.8 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.173e-05/0.2473, allocations: 41.62 kB / 399.8 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.2474, allocations: 12.72 kB / 399.8 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.698e-05/0.2474, allocations: 9 kB / 399.8 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.371e-05/0.2474, allocations: 26.3 kB / 399.8 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.089e-05/0.2475, allocations: 49.81 kB / 399.9 MB, free: 46.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00012/0.2476, allocations: 97.02 kB / 400 MB, free: 46.6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2476, allocations: 3.984 kB / 400 MB, free: 46.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2476, allocations: 0 / 400 MB, free: 46.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.2476, allocations: 0 / 400 MB, free: 46.59 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.0004353/0.2481, allocations: 430.2 kB / 400.4 MB, free: 46.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.2481, allocations: 8.344 kB / 400.4 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.018e-05/0.2481, allocations: 16.34 kB / 400.4 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.2483, allocations: 211.5 kB / 400.6 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.2483, allocations: 13 kB / 400.7 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.2484, allocations: 14.81 kB / 400.7 MB, free: 45.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.2486, allocations: 136.7 kB / 400.8 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2486, allocations: 3.938 kB / 400.8 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.2486, allocations: 6.031 kB / 400.8 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.2486, allocations: 2.094 kB / 400.8 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.2488, allocations: 66.83 kB / 400.9 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005177/0.2494, allocations: 0.6046 MB / 401.5 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002325/0.2496, allocations: 105.8 kB / 401.6 MB, free: 45.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.018e-05/0.2497, allocations: 43.69 kB / 401.6 MB, free: 45.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.2497, allocations: 0 / 401.6 MB, free: 45.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.229e-05/0.2497, allocations: 45 kB / 401.7 MB, free: 44.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.2498, allocations: 0 / 401.7 MB, free: 44.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003206/0.2501, allocations: 114.4 kB / 401.8 MB, free: 44.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.771e-05/0.2501, allocations: 107.8 kB / 401.9 MB, free: 44.76 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.821e-05/0.2502, allocations: 155.5 kB / 402 MB, free: 44.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.2502, allocations: 30.83 kB / 402.1 MB, free: 44.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.432e-05/0.2503, allocations: 118.8 kB / 402.2 MB, free: 44.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.2503, allocations: 26.92 kB / 402.2 MB, free: 44.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.742e-05/0.2504, allocations: 20.72 kB / 402.2 MB, free: 44.44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.726e-05/0.2504, allocations: 322.2 kB / 402.6 MB, free: 44.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.048e-05/0.2505, allocations: 24.92 kB / 402.6 MB, free: 44.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.588e-05/0.2506, allocations: 75.67 kB / 402.7 MB, free: 44.03 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.2507, allocations: 89.17 kB / 402.7 MB, free: 43.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2508, allocations: 4.031 kB / 402.7 MB, free: 43.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002107/0.251, allocations: 123.6 kB / 402.9 MB, free: 43.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.251, allocations: 5.531 kB / 402.9 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.251, allocations: 1.406 kB / 402.9 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.251, allocations: 6.672 kB / 402.9 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.2511, allocations: 27.38 kB / 402.9 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.2512, allocations: 9.625 kB / 402.9 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.176e-05/0.2512, allocations: 5.5 kB / 402.9 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.2513, allocations: 8.031 kB / 402.9 MB, free: 43.85 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 6.109e-05/0.2513, allocations: 135.2 kB / 403.1 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.2514, allocations: 9.281 kB / 403.1 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.811e-05/0.2514, allocations: 16.28 kB / 403.1 MB, free: 43.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.2514, allocations: 1.344 kB / 403.1 MB, free: 43.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2514, allocations: 1.281 kB / 403.1 MB, free: 43.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.2514, allocations: 4 kB / 403.1 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000151/0.2516, allocations: 221.4 kB / 403.3 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2516, allocations: 0 / 403.3 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.2517, allocations: 21.42 kB / 403.3 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2517, allocations: 0 / 403.3 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.2517, allocations: 6.25 kB / 403.3 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.2517, allocations: 1.25 kB / 403.3 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2517, allocations: 3.938 kB / 403.3 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009825/0.2527, allocations: 1.368 MB / 404.7 MB, free: 42.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.304e-05/0.2527, allocations: 84.86 kB / 404.8 MB, free: 41.97 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.2528, allocations: 9.25 kB / 404.8 MB, free: 41.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.026e-05/0.2529, allocations: 7.672 kB / 404.8 MB, free: 41.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.003e-05/0.2529, allocations: 2.344 kB / 404.8 MB, free: 41.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.2529, allocations: 6.422 kB / 404.8 MB, free: 41.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.109e-05/0.253, allocations: 114.1 kB / 404.9 MB, free: 41.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.253, allocations: 1.312 kB / 404.9 MB, free: 41.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.2533, allocations: 25.28 kB / 405 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 6.418e-05/0.2534, allocations: 97.3 kB / 405 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002114/0.2536, allocations: 67.34 kB / 405.1 MB, free: 41.74 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2536, allocations: 320 / 405.1 MB, free: 41.74 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.236e-05/0.2537, allocations: 38.23 kB / 405.2 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.0003462/0.2541, allocations: 23.64 kB / 405.2 MB, free: 41.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004548/0.2545, allocations: 408.4 kB / 405.6 MB, free: 41.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.2546, allocations: 0.7068 MB / 406.3 MB, free: 40.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.993e-05/0.2547, allocations: 13.55 kB / 406.3 MB, free: 40.61 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.03e-05/0.2547, allocations: 13.91 kB / 406.3 MB, free: 40.61 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.2547, allocations: 0 / 406.3 MB, free: 40.61 MB / 318.1 MB Notification: Performance of Templates: time 0.002909/0.2577, allocations: 0.9738 MB / 407.3 MB, free: 40.11 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=50 -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