Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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.001499/0.001499, allocations: 85.42 kB / 19.18 MB, free: 2.523 MB / 14.72 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.001865/0.001865, allocations: 165.9 kB / 22.46 MB, free: 5.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.369/1.369, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07508/0.07508, allocations: 12.53 MB / 271.7 MB, free: 4.594 MB / 254.1 MB " [Timeout remaining time 180] Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_dev_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_dev_PowerGrids.Controls.Test.TestDerivativeLag") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 405.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.437e-05/2.595e-05, allocations: 4.391 kB / 405.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.00302/0.003046, allocations: 1.788 MB / 407 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004187/0.003465, allocations: 163.5 kB / 407.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.00358, allocations: 7.938 kB / 407.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.00371, allocations: 23.67 kB / 407.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.003858, allocations: 23.84 kB / 407.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001102/0.003968, allocations: 43.89 kB / 407.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.004167, allocations: 127.6 kB / 407.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.004306, allocations: 33.52 kB / 407.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.004419, allocations: 67.83 kB / 407.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.052e-05/0.00451, allocations: 31.89 kB / 407.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.268e-05/0.004542, allocations: 8 kB / 407.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.759e-05/0.00456, allocations: 8 kB / 407.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.912e-05/0.004599, allocations: 23.86 kB / 407.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.39e-05/0.004643, allocations: 31.91 kB / 407.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.004814, allocations: 107.6 kB / 407.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.004816, allocations: 0 / 407.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.12e-07/0.004816, allocations: 0 / 407.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.004824, allocations: 0 / 407.7 MB, free: 10.03 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.0005257/0.00535, allocations: 346 kB / 408 MB, free: 9.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.005384, allocations: 12.03 kB / 408 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.045e-05/0.005424, allocations: 12.84 kB / 408 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.005698, allocations: 164.3 kB / 408.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.005711, allocations: 8.562 kB / 408.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.005736, allocations: 4.375 kB / 408.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.006005, allocations: 139 kB / 408.3 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.006016, allocations: 3.938 kB / 408.3 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.006031, allocations: 8 kB / 408.3 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.006035, allocations: 0 / 408.3 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002086/0.006244, allocations: 67.89 kB / 408.4 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000688/0.006932, allocations: 0.5209 MB / 408.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002809/0.007213, allocations: 103.8 kB / 409 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.007325, allocations: 46.81 kB / 409.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.007337, allocations: 0 / 409.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.007371, allocations: 46.44 kB / 409.1 MB, free: 8.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 9.01e-07/0.007372, allocations: 0 / 409.1 MB, free: 8.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004046/0.007776, allocations: 113.5 kB / 409.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.007842, allocations: 110.8 kB / 409.3 MB, free: 8.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.007995, allocations: 149.5 kB / 409.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.008016, allocations: 29.95 kB / 409.5 MB, free: 7.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.3e-05/0.008109, allocations: 131.8 kB / 409.6 MB, free: 7.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.008132, allocations: 19.83 kB / 409.7 MB, free: 7.809 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.635e-05/0.008198, allocations: 33.66 kB / 409.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.008349, allocations: 322.8 kB / 410 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.528e-05/0.008444, allocations: 27.92 kB / 410 MB, free: 7.418 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.008586, allocations: 91.7 kB / 410.1 MB, free: 7.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002093/0.008796, allocations: 97.09 kB / 410.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.008798, allocations: 0 / 410.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002827/0.00908, allocations: 121.5 kB / 410.3 MB, free: 7.062 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.009095, allocations: 7.938 kB / 410.3 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.0091, allocations: 0 / 410.3 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.009116, allocations: 8.156 kB / 410.4 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.009251, allocations: 27.92 kB / 410.4 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.009256, allocations: 0 / 410.4 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.409e-05/0.00934, allocations: 15.88 kB / 410.4 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.009349, allocations: 4 kB / 410.4 MB, free: 7 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 0.0001118/0.009461, allocations: 130.4 kB / 410.5 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.643e-05/0.009498, allocations: 11.89 kB / 410.5 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.377e-05/0.009531, allocations: 20.45 kB / 410.6 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.009537, allocations: 4 kB / 410.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.009541, allocations: 4.312 kB / 410.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.009545, allocations: 0 / 410.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001909/0.009736, allocations: 137.3 kB / 410.7 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-06/0.009739, allocations: 4 kB / 410.7 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.009853, allocations: 23.92 kB / 410.7 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.009858, allocations: 4 kB / 410.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.009869, allocations: 7.875 kB / 410.7 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.009871, allocations: 0 / 410.7 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.009877, allocations: 7.984 kB / 410.8 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003891/0.01027, allocations: 229.1 kB / 411 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.935e-05/0.01029, allocations: 7.984 kB / 411 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.01031, allocations: 11.92 kB / 411 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.133e-05/0.0104, allocations: 4 kB / 411 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.645e-05/0.01045, allocations: 7.984 kB / 411 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.01045, allocations: 0 / 411 MB, free: 6.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.028e-05/0.01054, allocations: 118.1 kB / 411.1 MB, free: 6.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01054, allocations: 0 / 411.1 MB, free: 6.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002555/0.0108, allocations: 19.94 kB / 411.1 MB, free: 6.207 MB / 334.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.379e-05/0.01089, allocations: 99.84 kB / 411.2 MB, free: 6.102 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000247/0.01114, allocations: 59.91 kB / 411.3 MB, free: 6.043 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.01114, allocations: 3.938 kB / 411.3 MB, free: 6.039 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.689e-05/0.01124, allocations: 27.97 kB / 411.3 MB, free: 6.012 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.01156, allocations: 34.23 kB / 411.4 MB, free: 5.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005732/0.01213, allocations: 255.7 kB / 411.6 MB, free: 5.703 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.619e-05/0.01221, allocations: 89.31 kB / 411.7 MB, free: 5.594 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.686e-05/0.01227, allocations: 12.48 kB / 411.7 MB, free: 5.582 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.768e-05/0.01231, allocations: 16.5 kB / 411.7 MB, free: 5.566 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.01231, allocations: 0 / 411.7 MB, free: 5.566 MB / 334.1 MB Notification: Performance of Templates: time 0.003915/0.01623, allocations: 1.009 MB / 412.7 MB, free: 4.578 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.makefile [Timeout 660] (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerGrids_dev_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_dev_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: 4.074103202670813]