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.0009892/0.0009893, allocations: 98.97 kB / 16.03 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 185.6 kB / 16.93 MB, free: 6.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.642/1.642, allocations: 205.4 MB / 223.1 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.07913/0.07913, allocations: 14.16 MB / 285.6 MB, free: 7.051 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.0006031/0.0006031, allocations: 19.94 kB / 349.5 MB, free: 17.49 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1176, allocations: 51.11 MB / 400.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002451/0.1201, allocations: 1.533 MB / 402.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004489/0.1206, allocations: 159.4 kB / 402.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.1207, allocations: 11.94 kB / 402.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.1209, allocations: 15.86 kB / 402.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.1211, allocations: 11.88 kB / 402.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001112/0.1212, allocations: 43.95 kB / 402.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.1214, allocations: 111.7 kB / 402.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.1216, allocations: 53.2 kB / 402.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.88e-05/0.1216, allocations: 39.8 kB / 402.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.1217, allocations: 31.78 kB / 402.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.067e-05/0.1218, allocations: 4 kB / 402.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.291e-05/0.1218, allocations: 0 / 402.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.175e-05/0.1218, allocations: 27.78 kB / 402.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.898e-05/0.1219, allocations: 57.45 kB / 402.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.122, allocations: 99.59 kB / 402.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1221, allocations: 0 / 402.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1221, allocations: 0 / 402.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1221, allocations: 3.938 kB / 402.8 MB, free: 12.13 MB / 302.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.0005908/0.1227, allocations: 399.3 kB / 403.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.1227, allocations: 12.03 kB / 403.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.103e-05/0.1228, allocations: 12.75 kB / 403.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.1231, allocations: 216 kB / 403.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.1231, allocations: 4.562 kB / 403.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.075e-05/0.1232, allocations: 12.38 kB / 403.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000325/0.1235, allocations: 142.2 kB / 403.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.1235, allocations: 0 / 403.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.1236, allocations: 4 kB / 403.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.1236, allocations: 4 kB / 403.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.1238, allocations: 71.89 kB / 403.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008447/0.1246, allocations: 0.6109 MB / 404.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.125, allocations: 108 kB / 404.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.1251, allocations: 50.56 kB / 404.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.1251, allocations: 4 kB / 404.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.1252, allocations: 30.56 kB / 404.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.1252, allocations: 0 / 404.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004382/0.1256, allocations: 129.5 kB / 404.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.1257, allocations: 110.8 kB / 404.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.1259, allocations: 154.3 kB / 404.8 MB, free: 9.816 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.1259, allocations: 25.7 kB / 404.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.106e-05/0.126, allocations: 111.9 kB / 405 MB, free: 9.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.051e-05/0.126, allocations: 39.72 kB / 405 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.788e-05/0.126, allocations: 21.72 kB / 405 MB, free: 9.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1262, allocations: 322.8 kB / 405.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.936e-05/0.1263, allocations: 19.98 kB / 405.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.1264, allocations: 73.94 kB / 405.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.1266, allocations: 105 kB / 405.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1267, allocations: 0 / 405.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002603/0.1269, allocations: 121.4 kB / 405.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.127, allocations: 4 kB / 405.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.127, allocations: 4 kB / 405.7 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.127, allocations: 3.938 kB / 405.7 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.1271, allocations: 32.12 kB / 405.7 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.1271, allocations: 4 kB / 405.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.548e-05/0.1272, allocations: 15.84 kB / 405.7 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.1273, allocations: 4 kB / 405.7 MB, free: 8.855 MB / 302.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.38e-05/0.1274, allocations: 133.7 kB / 405.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.202e-05/0.1274, allocations: 7.906 kB / 405.9 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.413e-05/0.1274, allocations: 16.3 kB / 405.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1274, allocations: 4 kB / 405.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1275, allocations: 3.938 kB / 405.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1275, allocations: 4 kB / 405.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/0.1277, allocations: 201.6 kB / 406.1 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1277, allocations: 4 kB / 406.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.1279, allocations: 15.98 kB / 406.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1279, allocations: 0 / 406.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.1279, allocations: 7.984 kB / 406.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1279, allocations: 0 / 406.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1279, allocations: 0 / 406.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.1294, allocations: 1.229 MB / 407.3 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.926e-05/0.1295, allocations: 85.05 kB / 407.4 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.1295, allocations: 12.03 kB / 407.4 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.309e-05/0.1296, allocations: 7.984 kB / 407.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.908e-05/0.1297, allocations: 11.88 kB / 407.4 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.1297, allocations: 4 kB / 407.4 MB, free: 6.898 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.272e-05/0.1298, allocations: 119.2 kB / 407.6 MB, free: 6.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1298, allocations: 0 / 407.6 MB, free: 6.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003382/0.1302, allocations: 23.84 kB / 407.6 MB, free: 6.758 MB / 302.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 0.0001092/0.1303, allocations: 103.2 kB / 407.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002546/0.1305, allocations: 75.88 kB / 407.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1306, allocations: 0 / 407.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.797e-05/0.1307, allocations: 31.92 kB / 407.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003834/0.1311, allocations: 27.8 kB / 407.8 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006712/0.1317, allocations: 410.3 kB / 408.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.1321, allocations: 0.7121 MB / 408.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.026e-05/0.1322, allocations: 12.55 kB / 408.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.849e-05/0.1322, allocations: 11.44 kB / 409 MB, free: 5.309 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1322, allocations: 0 / 409 MB, free: 5.309 MB / 302.1 MB Notification: Performance of Templates: time 0.004038/0.1363, allocations: 0.9131 MB / 409.9 MB, free: 4.402 MB / 302.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