Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDeadBand.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.TestDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="deadBand.smoothed|deadBand.u|deadBand.uMax|deadBand.uMin|deadBand.y|deadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestDeadBand") translateModel(PowerGrids.Controls.Test.TestDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="deadBand.smoothed|deadBand.u|deadBand.uMax|deadBand.uMin|deadBand.y|deadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestDeadBand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006358/0.006358, allocations: 99.56 kB / 15.73 MB, free: 6.48 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.001286/0.001287, allocations: 189 kB / 16.67 MB, free: 6.367 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.647/1.647, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06441/0.06441, allocations: 14.16 MB / 284.1 MB, free: 6.988 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.002875/0.002875, allocations: 67.89 kB / 396.5 MB, free: 16 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3602, allocations: 50.14 MB / 446.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.00192/0.3622, allocations: 0.676 MB / 447.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002687/0.3624, allocations: 63.81 kB / 447.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.252e-05/0.3625, allocations: 0 / 447.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.735e-05/0.3626, allocations: 5.281 kB / 447.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.939e-05/0.3627, allocations: 0 / 447.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001718/0.3628, allocations: 20.05 kB / 447.4 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.363, allocations: 26.25 kB / 447.4 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.3631, allocations: 3.188 kB / 447.4 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.629e-05/0.3631, allocations: 19.61 kB / 447.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.972e-05/0.3632, allocations: 20.17 kB / 447.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.553e-05/0.3632, allocations: 2.25 kB / 447.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.18e-05/0.3632, allocations: 2.5 kB / 447.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.939e-05/0.3633, allocations: 5.109 kB / 447.4 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.883e-05/0.3633, allocations: 9.094 kB / 447.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.352e-05/0.3634, allocations: 28.83 kB / 447.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3634, allocations: 0 / 447.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3634, allocations: 1.125 kB / 447.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.3634, allocations: 0 / 447.5 MB, free: 1.453 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004328/0.3639, allocations: 334.8 kB / 447.8 MB, free: 1.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.3639, allocations: 9.469 kB / 447.8 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.571e-05/0.364, allocations: 2.875 kB / 447.8 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001466/0.3641, allocations: 169.3 kB / 448 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.3641, allocations: 384 / 448 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.3641, allocations: 2.219 kB / 448 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.3643, allocations: 87.86 kB / 448.1 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.3644, allocations: 4.172 kB / 448.1 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3644, allocations: 7.938 kB / 448.1 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.3644, allocations: 1.688 kB / 448.1 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.3646, allocations: 33.38 kB / 448.1 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000335/0.3649, allocations: 277.3 kB / 448.4 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.3651, allocations: 74.48 kB / 448.5 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.668e-05/0.3652, allocations: 25.95 kB / 448.5 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.3652, allocations: 9.75 kB / 448.5 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.3652, allocations: 35.81 kB / 448.5 MB, free: 344 kB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3652, allocations: 0 / 448.5 MB, free: 344 kB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003672/0.3656, allocations: 95.16 kB / 448.6 MB, free: 280 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.3657, allocations: 109.1 kB / 448.7 MB, free: 148 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.245e-05/0.3657, allocations: 103.6 kB / 448.8 MB, free: 40 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.067e-06/0.3657, allocations: 29.7 kB / 448.9 MB, free: 4 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.039e-05/0.3658, allocations: 83.66 kB / 448.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.3658, allocations: 3.953 kB / 449 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.489e-05/0.3659, allocations: 17.41 kB / 449 MB, free: 15.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.366, allocations: 313 kB / 449.3 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-05/0.3661, allocations: 31.73 kB / 449.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.651e-05/0.3662, allocations: 33.12 kB / 449.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.3664, allocations: 49.47 kB / 449.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3664, allocations: 4.031 kB / 449.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002053/0.3666, allocations: 72.03 kB / 449.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.3666, allocations: 5.625 kB / 449.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.3666, allocations: 3.938 kB / 449.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.3667, allocations: 1.906 kB / 449.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.478e-05/0.3668, allocations: 16.3 kB / 449.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.3668, allocations: 0 / 449.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.716e-05/0.3668, allocations: 16.81 kB / 449.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.876e-06/0.3669, allocations: 1.344 kB / 449.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.3e-05/0.3669, allocations: 89.52 kB / 449.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.145e-05/0.367, allocations: 24.69 kB / 449.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.935e-05/0.3671, allocations: 28.2 kB / 449.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.877e-06/0.3671, allocations: 4.031 kB / 449.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001243/0.3672, allocations: 58.12 kB / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.377e-06/0.3672, allocations: 4.719 kB / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-06/0.3673, allocations: 1.281 kB / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-06/0.3673, allocations: 0 / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.584e-05/0.3673, allocations: 5.812 kB / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-06/0.3673, allocations: 1.312 kB / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.346e-05/0.3674, allocations: 10.73 kB / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-06/0.3674, allocations: 9.125 kB / 449.7 MB, free: 15.22 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.938e-05/0.3675, allocations: 186.5 kB / 449.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.3675, allocations: 1.344 kB / 449.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.3675, allocations: 8.281 kB / 449.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3675, allocations: 1.031 kB / 449.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3676, allocations: 1.125 kB / 449.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.3676, allocations: 0 / 449.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001866/0.3678, allocations: 168.3 kB / 450.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3678, allocations: 0 / 450.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.15e-05/0.3678, allocations: 15.61 kB / 450.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3678, allocations: 1.219 kB / 450.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.3679, allocations: 5 kB / 450.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-06/0.3679, allocations: 1.156 kB / 450.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3679, allocations: 0 / 450.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002715/0.3681, allocations: 183.3 kB / 450.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.3682, allocations: 78.42 kB / 450.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.3682, allocations: 1.438 kB / 450.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.302e-05/0.3683, allocations: 13.97 kB / 450.4 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/0.3684, allocations: 2.719 kB / 450.4 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.3684, allocations: 0 / 450.4 MB, free: 14.53 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.567e-05/0.3684, allocations: 87.31 kB / 450.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3684, allocations: 0 / 450.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002668/0.3687, allocations: 18.38 kB / 450.5 MB, free: 14.44 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * 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 (3): * Single equations (assignments): 3 * 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.0001137/0.3688, allocations: 92.16 kB / 450.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.3691, allocations: 57.27 kB / 450.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3691, allocations: 0 / 450.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.948e-05/0.3692, allocations: 22.64 kB / 450.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.3695, allocations: 14.84 kB / 450.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003757/0.3699, allocations: 118.7 kB / 450.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.3702, allocations: 0.6787 MB / 451.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.689e-05/0.3703, allocations: 5.875 kB / 451.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.574e-05/0.3703, allocations: 13.25 kB / 451.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3703, allocations: 0 / 451.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of Templates: time 0.003143/0.3735, allocations: 0.6331 MB / 452.1 MB, free: 13.14 MB / 334.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDeadBand.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDeadBand.sim & ./PowerGrids_PowerGrids.Controls.Test.TestDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDeadBand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDeadBand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches